NET/MASTER Network Control Language (NCL) Programmer's Guide

Defining Field Characters in a Panel Description File
Working With Panels
106160 Tandem Computers Incorporated 14–37
Specifying Field-Level Justification and Padding
Field-level justification is performed on an entire field, including variables within the
field, as delimited by defined field characters. Field justification analyzes the entire
field, strips trailing blanks, and pads and justifies the remaining data. The #FLD
operands controlling field-level justification are JUST and PAD.
To observe the affect of field-level justification and padding, follow these steps:
1. Type the following NCL procedure in your user procedure library and call it
ZEX1405N:
zex1405n: PROCEDURE
/* Illustrates field-level justification */
/* and padding */
&variable1 = Left justified null padding
&variable2 = Right justified null padding
&variable3 = Center justified null padding
&variable4 = Left justified with padding
&variable5 = Right justified with padding
&variable6 = Center justified with padding
PANEL ZEX1405P
END zex1405n
2. Type the following panel description file in your user panel library and call it
ZEX1405P:
#NOTE ZEX1405P
#NOTE Illustrates field-level justification and padding
#FLD * JUST=LEFT
#FLD $ JUST=RIGHT
#FLD ^ JUST=CENTRE
#FLD @ JUST=LEFT PAD=[
#FLD ? JUST=RIGHT PAD=]
#FLD / JUST=CENTRE PAD=.
*&variable1
$&variable2
^&variable3
@&variable4
?&variable5
/&variable6
3. Execute the ZEX1405N NCL procedure from the OCS command input line using
the following START command:
START ZEX1405N