NET/MASTER Network Control Language (NCL) Reference Manual

#FLD
Panel Control Statements
106126 Tandem Computers Incorporated 6–23
The following example shows the use of the #FLD panel statement in defining a field
(RKEY) as either input or output.
#NOTE This is panel PNL3. It contains an example of the OUTVAR operand in #FLD.
#FLD $ TYPE=&INOUT
#NOTE % HIGH-INTENSITY (OUTPUT)
#NOTE + LOW-INTENSITY (OUTPUT)
#NOTE _ HIGH-INTENSITY (INPUT)
#NOTE If
&INOUT
equals OUTVAR, the field &RKEY is an output only field.
#NOTE If
&INOUT
equals INPUT, &RKEY is an input field that can
#NOTE be modified by the user.
+ Record Key $RKEY +
An NCL procedure that displays the preceding panel is listed next. This NCL
procedure shows how to define the field RKEY as an input or output field:
PSLPX: PROCEDURE
ON panel_error do
say “&sys.retcode = “ &sys.retcode
say “&sysmsg = “ &sysmsg
END
&inout=INPUT /* or =OUTVAR if you want an output field */
&rkey=ENTER SOMETHING
PANEL pnl3
SAY “&RKEY = “&rkey
SAY THAT IS IT
END PSLPX
The command to execute the preceding NCL procedure is shown next:
START PSLPX