NET/MASTER Network Control Language (NCL) Programmer's Guide
Defining Field Characters in a Panel Description File
Working With Panels
14–50 106160 Tandem Computers Incorporated
Example of Dynamic Preparsing
Dynamic preparsing is best described by a series of examples. Study the #FLD
statements in the following panel description file and observe the results of displaying
the panel on a screen.
1. Type the following NCL procedure in your user procedure library and call it
ZEX1409N:
zex1409n: PROCEDURE
/* Illustrates dynamic preparsing */
&v1 = A
&variable1 = "Value is &v1 in this string "
&v2 = AB
&variable2 = "Value is &v2 in this string "
&v3 = ABC
&variable3 = "Value is &v3 in this string "
&v4 = ABCD
&variable4 = "Value is &v4 in this string "
&v5 = ABCDE
&variable5 = "Value is &v5 in this string "
PANEL ZEX1409P
END zex1409n
2. Type the following panel description file in your user panel library and call it
ZEX1409P:
#NOTE ZEX1409P
#NOTE Illustrates dynamic preparsing
#OPT PREPARSE=($,D)
+$v1+AFFECTED BY DYNAMIC PREPARSING
+$v2+AFFECTED BY DYNAMIC PREPARSING
+$v3+AFFECTED BY DYNAMIC PREPARSING
+$v4+AFFECTED BY DYNAMIC PREPARSING
+$v5+AFFECTED BY DYNAMIC PREPARSING
+&v1+NOT AFFECTED BY DYNAMIC PREPARSING
+&v2+NOT AFFECTED BY DYNAMIC PREPARSING
+&v3+NOT AFFECTED BY DYNAMIC PREPARSING
+&v4+NOT AFFECTED BY DYNAMIC PREPARSING
+&v5+NOT AFFECTED BY DYNAMIC PREPARSING
+$variable1+AFFECTED BY DYNAMIC PREPARSING
+$variable2+AFFECTED BY DYNAMIC PREPARSING
+$variable3+AFFECTED BY DYNAMIC PREPARSING
+$variable4+AFFECTED BY DYNAMIC PREPARSING
+$variable5+AFFECTED BY DYNAMIC PREPARSING
+&variable1+NOT AFFECTED BY DYNAMIC PREPARSING
+&variable2+NOT AFFECTED BY DYNAMIC PREPARSING
+&variable3+NOT AFFECTED BY DYNAMIC PREPARSING
+&variable4+NOT AFFECTED BY DYNAMIC PREPARSING
+&variable5+NOT AFFECTED BY DYNAMIC PREPARSING
3. Execute the ZEX1409N NCL procedure from the OCS command input line using
the following START command:
START ZEX1409N