Changing File Attributes for File Names Matching a Pattern Using changeda
The changeda -p
option allows you to change attribute values for all files in a data area whose names match a regular expression.
To change file attributes for files matching a business class pattern
changeda -p[r] [attribute=value] [-v displayoptions] dataarea [filename_pattern ]
where the default data area attributes that can be changed are:
Attribute | Value |
---|---|
space |
A valid database space name to contain the file. |
varchar |
Enter The default is |
ddloptions |
The ddloptions attribute enables you to include a string with valid DDL statements. This replaces the functionality formerly provided by LAW_DBA_TABLES. |
splitlobstorage |
If you set this to For more information on how to convert to using split LOB storage, see Converting to Split LOB Storage. |
pmyincludedeleteflag |
If you set this to true , the system more efficiently processes searches against primary indexes that have deleted records. For a new installation, the default value of this attribute is true . For systems being updated from pre-10.0.0.2 Landmark, you must run changeda to set the value to true . |
Other values in the command syntax are:
Entry | Description |
---|---|
-r |
Remove files or modules in the specified data area. |
dataarea |
The data area to change file attributes for. |
filename-pattern |
A regular expression that matches one or more LPL file names. |
-v displayoptions |
|
Example: Setting an Attribute For Files that Contain a Pattern
The following command sets the default space
attribute value to lazyspace
for files in the data area myproduct
whose names contain the phrase "U_
":
changeda -p space="lazyspace" myproduct U_*
When this statement is implemented, the Unique ID files for classic tables created by the Lazy Unique ID pattern will all be placed in the database space called lazyspace
.