NET/MASTER Network Control Language (NCL) Programmer's Guide
Debugging an NCL Process From Start to Finish
Debugging an NCL Process
9–64 106160 Tandem Computers Incorporated
Before continuing with this analysis, read the source code that draws the calendar and
list the variables used to draw the calendar:
Variable Contains
&DAY The value of the first day of the month. This variable is used as a loop counter.
Its value should vary from 1 through 29.
&DAYS The number of days in the month. Its value should be fixed at 29.
&FIRST The numeric equivalent of the day of the week at which the month starts. Its value
should be fixed at 7 (Saturday).
&LINE The output line. Its value should vary as the output line is constructed. When the
length of the output line is exactly divisible by 7, the output line should be
displayed on the OCS window.
&LINELENGTH The length of the output line. Its value should vary as the output line is
constructed. When the length of the output line is exactly divisible by 7, the output
line should be displayed on the OCS window.
&START A date in the following form: yy/mm/01. Its value should be fixed at 2020/02/01.
Stop Ask yourself the question: which variable is used incorrectly and how can I fix it?