ADDWHEN
Use ADDWHEN with the SETDEFAULTS entry type to set the default value for
the ADDWHEN keyword on ADDCONFIG and UPDATECONFIG entry types.
Set the default for when during processing you want i5/OS to add the new
line or string to the file. You can specify:
- ALWAYS if you want i5/OS to add the line or string every time it processes
the configuration file. (ALWAYS is the default unless you defined a different
default.)
- NEVER if you want i5/OS to never add the line or string.
- An expression that directs i5/OS to add the line or string when the specified
condition is true. Expressions are composed of operands (see ADDWHEN and DELETEWHEN expression operators)
and must equate to either TRUE or FALSE.
- Note:
- If you do not want i5/OS to interpret an expression (such as one that
contains an asterisk (*)) as a mathematical operation, enclose the expression
in quotation marks. For example, to add a line when the NWSD type is *WINDOWSNT,
you might use this:
ADDWHEN = '(%FPANWSDTYPE%=="*WINDOWSNT")'