PRINT [ HP RPG/XL Utilities-Part 2 RISE ] MPE/iX 5.0 Documentation
HP RPG/XL Utilities-Part 2 RISE
PRINT
PRINT enables you to print a complete work file or portion of the file,
or a compilation listing of a file, on the line printer.
Form
P[RINT] lb[/le] [R[PGLIST]]
Parameter Explanation
lb First, or single, line you wish to have printed.
le Last line of a range you want printed offline.
RPGLIST Print the last RPG compilation listing produced by the
RISE VERIFY command.
Purpose
The PRINT command prints a line, a line range, or a complete file on the
line printer in a special format with the formal file name of "RISELIST"
and device class of "LP". Whenever the RPG form type in column 6
changes, the PRINT command will skip three lines to group together those
lines which have the same form type. This produces a more readable
format for the source code. Because of this feature, the PRINT command
should only be used when you are working on RPG source code. If
"RPGLIST" is specified, the compilation listing produced by the VERIFY
RPG command is printed instead of the work file. In this case, the
formal file name used is "RPGLIST".
Related Commands
The LIST command will also print your workfile offline on a line printer.
It does not skip 3 lines when column 6 changes. Thus, it is suitable for
printing offline any type of text you may be editing, such as data or a
document.
*Execution mode: Line or Block
Examples
The following are legal abbreviations which may be used with the PRINT
command and its parameters:
P FIRST/50 Print a range of lines from the beginning to line 50.
P ALL RPGLIST Print the entire listing produced by the VERIFY RPG
command.
PRI A R Print the entire listing produced by the VERIFY RPG
command.
P*-5/L Print a range of lines beginning five lines before the
current position of the record pointer and ending with
the last line in the file.
In the example, the TEXT command is used to copy SIMCAL into a work file.
PRINT ALL is entered, and an execution message appears on the screen when
the command is executed (1). An error results when PRINT is used with
the RPGLIST paramater, and SIMCAL has not been previously compiled using
the VERIFY RPG command (2). Finally, an abbreviation of the PRINT
command is shown to be legal by the appearance of the execution message
(3).
>T SIMCAL
Text completed.
(1) >PRINT ALL
Print completed.
>P ALL RPGLIST
(2) Error 64: There is no compilation listing to print.
>
>PRIN1/10
(3) Print completed.
>
>
MPE/iX 5.0 Documentation