Field Specifications |
Both the WINDOW and DISPLAY statements accept field specifications. Field specifications have the following general form:
The positionals are directives specifying the position on the screen in which to begin the field. There are four kinds of positionals, any number of which are accepted for each field operand. Positionals are the following:
specifies the row position; that is, it moves the current position to column 1 of the specified line. The operand is either a number, a variable name, or an expression in parentheses. The expression must evaluate to a positive number.
instructs IML to go to column 1 of the next row.
specifies the column position. The operand is either a number, a variable name, or an expression in parentheses. The @ directive should come after the pound sign (#) positional, if it is specified.
instructs IML to skip columns. The operand is either a number, a variable name, or an expression in parentheses.
The field-operand specifies what goes in the field. It is either a character literal in quotes or the name of a character variable.
The format is the format used for display, for the value, and also as the informat applied to entered values. If no format is specified, the standard numeric or character format is used.
specifies that the field is protected; that is, you cannot enter values in the field. If the field operand is a literal, it is already protected.
specifies the color of the field. The operand can be either a literal character value in quotes, a variable name, or an expression in parentheses. The colors available are WHITE, BLACK, GREEN, MAGENTA, RED, YELLOW, CYAN, GRAY, and BLUE. The default is BLUE. Note that the color specification is different from that of the corresponding DATA step value because it is an operand rather than a name without quotes.