Use this field-level keyword to specify a default value for an output-capable field. On the first output operation, the specified value is displayed if the option indicator is on or has not been specified. Otherwise, the program value is used. On subsequent output operations, the program value appears.
The format of the keyword is:
DFTVAL('value')
This keyword is valid on output-only (O) or output-input (B) fields.
You can only use this keyword to initialize named fields. It is not allowed on constant fields.
Since the maximum number of characters on a DDS statement is 5000, this keyword, along with any other keywords specified on the DDS statement, must contain less than 5000 characters.
You cannot use this keyword in a subfile format (SFL keyword).
You cannot specify the DFTVAL keyword on the same field with a DFT, EDTCDE (Edit Code), or EDTWRD (Edit Word) keyword, or on a floating-point field.
Option indicators are valid for this keyword.
(C) Copyright IBM Corporation 1992, 2006. All Rights Reserved.