HP RPG/XL Programmer's Guide (30318-90001)

6- 8
$CONTROL
The $CONTROL statement is a compiler subsystem command that lets you
specify many compile-time options including:
* The name of the source program file (this overrides the name in
columns 75-80 of the Header Specification)
* The delimiter character for non-numeric literals
* The number of lines per page to print on the compiler listings
* Which lines to include in the source program and Cross-Reference
listings
Normally, if you use $CONTROL, it is the first statement in the program.
However, you can use $CONTROL statements throughout a program. For
instance, you may want to turn compiler options on and off at different
points in the program.
Figure 6-9 shows how to enter a $CONTROL statement to change the compiler
options listed above.
Figure 6-9. Using $CONTROL to Change Compiler Defaults
Comments
1 This $CONTROL statement specifies that: the program name is
PAYRL5; the delimiter character for non-numeric literals is a
single quote ('); the maximum number of lines per page in the
compiler listings is 55; and the source program and
Cross-Reference listings will not be printed.
2 This $CONTROL statement turns on the source program and
Cross-Reference listing options.
3 This $CONTROL statement turns off the source program and
Cross-Reference listing options.
$TITLE
$TITLE is used to change the title that appears on the top of each