nuck
New User
Joined: 09 Dec 2005 Posts: 33
|
|
|
|
in the ISPF Manual:
PAD(char|NULLS|USER)
Specifies the pad character for initializing the field. This is not valid for text fields. If PAD is omitted, the default is PAD(' ') for output fields.
char
Any character, including blank (' '), can be specified as the padding character. If the character is any of the following, it must be enclosed in single quotes:
blank < ( + ) ; ? , > : =
If the desired pad character is a single quote, use four single quotes: PAD('').
NULLS
Nulls are used for padding.
USER
Padding character is specified by a user through the ISPF Settings panel.
If the field is initialized to blanks or the corresponding dialog variable is blank, the entire field contains the pad character when the panel is first displayed. If the field is initialized with a value, the remaining field positions, if any, contain the pad character.
Padding and justification work together as follows. At initialization, unless you have specified ASIS, the field is justified and then padded. For left-justified and ASIS fields, the padding extends to the right. For right-justified fields, the padding extends to the left.
When ISPF processes an input field, it automatically deletes leading or trailing pad characters as follows:
For a left-justified field, ISPF deletes leading and trailing pad characters.
For a right-justified field, ISPF deletes leading pad characters and stores trailing pad characters.
For an ASIS field, ISPF deletes trailing pad characters and stores leading pad characters.
Regardless of the type of justification, ISPF deletes leading and trailing pad characters for command fields.
In no case does ISPF delete embedded pad characters. It deletes only leading or trailing pad characters.
PADC(char|NULLS|USER)
Specifies conditional padding with the specified pad character. The pad character is used as a field filler only if the value of the input or output field is initially blank. The pad character is not displayed in the remaining unfilled character positions if the field has an initial value. Instead, the unfilled positions contain nulls. Otherwise, ISPF treats the PADC keyword like the PAD keyword, including justification and deletion of pad characters before storing variables in the pool.
char
Any character, including blank (' '), can be specified as the padding character. If the character is any of the following, it must be enclosed in single quotes:
blank < ( + ) ; ? , > : =
If the desired pad character is a single quote, use four single quotes: PAD('''').
NULLS
Nulls are used for padding.
USER
Specifies that a user-defined character be used for padding. You define the character by using the ISPF Settings panel. PAD and PADC are incompatible. It is not valid to specify both PAD and PADC for the same attribute character.
If PADC is omitted, the default is PADC(USER) for input fields. |
|