#FLD Control Statement-Define or Modify a Panel Definition Field Character

Use this control statement to tailor the operational characteristics of a panel.

When a panel is defined, it is made up of a number of lines, which in turn are made up of a number of fields. Each field commences with a field character, which appears as a blank on the panel when displayed. Each field character determines the attributes that are to be associated with the field following the field character itself. A field is delimited by the next field character or the end of the panel line. Fields cannot wrap from one line to the next.

The first field on a line always starts in column 1. If no field character is defined in the first position of the line, the attributes of the second of the three standard field characters (usually a plus sign (+), TYPE=OUTPUT, INTENS=LOW) are forced, and they replace any non-field character incorrectly placed in this position.

Before parsing, the #FLD statement is scanned and variable substitution is performed. This makes it possible to dynamically tailor any of the options or operands on the statement.

You can specify as many #FLD statements as required, and you can define them in any order. However, as with #OPT, #ERR and #NOTE statements, all #FLD statements must precede the start of the panel, which is determined by the first line that is not a control statement.

This control statement has the following format:

#FLD {  c | X'xx' }
     [  BLANKS={ TRAIL | NONE | ANY } ]
     [  CAPS={ YES | NO } ]
     [  { COLOR | COLOUR } = {  BLUE | RED | PINK | GREEN |
               TURQUOISE | YELLOW | WHITE | DEFAULT } ]
     [  CSET={ ALT | DEFAULT } ]
     [  EDIT={ ALPHA | ALPHANUM | DATEn | DSN | HEX |
               NAME | NAME* | NUM | REAL | SIGNNUM | TIMEn }  ]
     [  { HLIGHT | HLITE } = { USCORE | REVERSE | BLINK | NONE }  ]
     [  INTENS={ HIGH | LOW | NON } ]
     [  JUST={ LEFT | RIGHT | ASIS | CENTER | CENTRE } ]
     [  MODE={ SBCS | MIXED } ]
     [  NCLKEYWD={ YES | NO } ]
     [  OUTLINE={  {L R T B} | BOX } ]
     [  PAD={ NULL | BLANK | char } ]
     [  PSKIP={ NO | PMENU } ]
     [  RANGE=(min,max) ]
     [  REQUIRED={ YES | NO } ]
     [  SKIP={ YES | NO } ]
     [  SUB={ YES | NO } ]
     [  TYPE={ OUTPUT | INPUT | OUTVAR | SPD | NULL } ]
     [  VALIGN={ NO | LEFT | RIGHT | CENTER | CENTRE } ]

If no additional operands are defined following a new field character, then the following defaults apply:

Examples: #FLD Control Statement

#FLD#TYPE=INPUT REQ=YES EDIT=NUM COLOR=RED RANGE=(1,3)
#FLD#BLANKS=TRAIL PAD=_
#FLD#TYPE=OUTPUT COLOR=&COLOR HLIGHT=&HLIGHT
#FLD(TYPE=INPUT INTENS=HIGH EDIT=DATE4
#FLD@HLIGHT=BLINK
#FLD/TYPE=SPD
#FLD%JUST=R PAD=- -* supplementing default output char
#FLD_JUST=ASIS -* supplementing default input char #FLD + VALIGN=RIGHT JUST=CENTER
-* null pad assumed

Notes:


Copyright © 2010 CA. All rights reserved.