PRINT [ HP 3000 Series 9X8LX Computer Systems Commands Reference ] MPE/iX 5.0 Documentation
HP 3000 Series 9X8LX Computer Systems Commands Reference
PRINT
This command displays the contents of a specified file name to the
standard list device, unless you specify another destination.
Syntax
PRINT[[FILE=]filename] [[;OUT=]outfile] [[;START=]m] [[;END=]n]
[[;PAGE=]p] [;{unn/num}]
Parameters
FILE Specifies the actual file name of the file to be
printed to $STDLIST, unless you specify outfile as
a destination. Filename may be given in MPE or HFS
syntax and may name a symbolic link that resolves
to a file name.
The following points apply to this parameter:
* You can specify a temporary or a permanent
disk file with this parameter.
* File equations are ignored unless an
asterisk (*) precedes filename, indicating a
backreference.
* The filename can be $STDIN or $STDINX, the
default.
* If you do not specify a file name, PRINT
takes its input from $STDINX and continues
to do so until you enter the :EOD command on
a new line.
* Supports HFS file names that start with a
"." or a "/".
OUT Specifies a destination other than $STDLIST for
filename.
The following points apply to this parameter:
* If filename has embedded carriage-control
characters (CCTL), PRINT inserts a blank in
place of the CCTL in the outfile.
* New files are created as TEMP.
* File equations are ignored unless an
asterisk (*) precedes outfile, indicating a
backreference.
* You must use a file equation to overwrite a
permanent file.
* Supports HFS file names.
Operation Notes
* Usage
You can enter this command from a session, a job, a program, or in
break mode. Pressing Break aborts the execution of this command.
* Batch print jobs
For batch jobs in which filename defaults to $STDINX, some
commands such as :EOD, EOF, JOB, EOJ, and DATA do not execute as
part of the original job when they follow the PRINT command.
For example, PRINT command reads all job input up to the :EOD
line. At that point, the PRINT command is finished and the
remaining JOB stream commands are executed.
Examples
* To send the contents of MYFILE to the line printer, XXX, enter:
:FILE XXX;DEV=LP
:PRINT MYFILE, *XXX
The file XXX equates with the line printer. Then the file MYFILE
"prints" to the file *XXX.
* To use the PRINT command itself to create a file, enter the
following lines from your terminal:
:PRINT $STDIN,TAILB
PARM FILE, LAST=5
PRINT !FILE; START = -!LAST
:EOD
:SAVE TAILB
Since the default is temporary, the SAVE command permanently saves
the file TAILB.
Related Commands
COPY
EDITOR
FCOPY
MPE/iX 5.0 Documentation