A SERVICE OF

logo

Chapter 6 445
Command Definitions P-R
PRINT
TAIL MYFILE
To print the last 45 records of MYFILE, because entering the value 45 overrides the default
value of 10, enter:
TAIL MYFILE, 45
NOTE The PRINT command itself can be used to create a file:
PRINT $STDIN,TAILB
PARM FILE, LAST=5
PRINT !FILE; START = -!LAST
:EOD
SAVE TAILB
The SAVE command is used to make the file TAILB permanent since the
default is temporary.
PRINT infile;NUM;NONUM
would print the line numbers as in the case of UNNUMbered files, ie, line numbers
starting from 1 for the first record and so on.
PRINT infile;UNN;NONUM
PRINT infile;NONUM
would consider the file as UNNUMbered file even when the file is a NUMbered file and the
print the contents as it is in the file.
[UFILEYES is an unnumbered file with trailing 8 characters as digits. ]
PRINT UFILEYES
aaaaaaaaaaaa
bbbbbbbbbbbb
cccccccccccc
dddddddddddd
eeeeeeeeeeee
ffffffffffff
gggggggggggg
hhhhhhhhhhhh
iiiiiiiiiiii
jjjjjjjjjjjj
kkkkkkkkkkkk
llllllllllll