TYPE TYPE Use the TYPE terminal in
EBCDIC code.
command to display all or part of a file at
either EBCDIC or the hexadecimal representation of
The format of the TYPE command is: the
the r- I r r
" , Type fn ft [fm] 1 rec 1 I recn, I [(options ••• [)] ]
1
* I * I * 11 , I 1 I II I L L .1.1 I I QJ!ti.Q1!§: I r r
" r , I I [HEX] I COL {XXXXX} -I yyyyy I I {n:me}: I 1 I , I L L .J.J L .J L- fn is the filename of the file to be displayed.
ft is the filetype of the file to be displayed.
fm is the filemode of the file to be displayed. If this field is
omitted, the A-disk and its extensions are searched to locate
the file. If fm is specified as an asterisk (*), all disks are
searched, and the first file found is displayed.
recl is the record number of the first record to be displayed. This
field cannot contain special characters. If reel is greater
than the number of records in the file, an error message is
displayed. If this field is omitted or entered as an asterisk
(*), a record number of 1 is assumed.
recn is the record number of the last record to be displayed. This
value cannot contain embedded commas. If this field is not
specified, is entered as an asterisk (*), or is greater than the
number of records in the file, displaying continues until end of
file is reached. COL xxxxx-yyyyy
displays only certain columns of each record. xxxxx specifies
the start column and yyyyy the end column of the field within
the record that is to be displayed. The string xxxxx-yyyyy
may have a maximum of eight characters; additional characters
are truncated.
If columns are not specified, the entire record is displayed
unless the filetype is LISTING, in which case the first
position of each record is not displayed, since it is assumed
to be a carriage control character. HEX displays the file in hexadecimal format. Section 2. CMS Commands 199
TYPE MEMBER MEM {n:me}
displays member(sl of a library. If ft is MACLIB or TXTLIB r a MEMBER entry can be specified. If an asterisk (*) is
specified, all members of the library are displayed. If a name
is specified
r only that particular member is displayed.
1. If the HEX option is specified
r each record can be displayed in its
entirety; if not, no more than 130 characters of each record can be
displayed.
2 The length of each output line is
current terminal linesize (as command), whichever is smaller.
limited to 130 characters or the
specified by the CP TERMINAL 3. If the MEMBER option is specified more than once, only the last
member specified is typed. If one option is coded with an
asterisk (*), and another MEMBER option is specifiea with a member
name, only the specified member is typedr regardless of their order
on the command line. For example if you code:
type one maclib (member example1 member example2
only EXAMPLE2 is typed. If you code:
type one maclib (member example1 member *
only EXAMPLE1 is typed. The file is
specifications.
a header record:
displayed at the terminal according to the given When you use the HEX option
r each record is preceded by
RECORD nnnnn LENGTH=nnnnn DMSTYP002E DMSTYP003E DMSTYP005E DMSTYP009E DMSTYP013E DMSTYP029E DMSTYP033E DMSTYP03QE DMSTYPOlJ9E DMSTYP054E DMSTYP062E DMSTYP104S DMSTYP069E FILE 'fn ft fm' NOT FOUND RC=28
INVALID OPTION 'option' RC=24 NO 'option' SPECIFIED RC=2lJ COLUMN 'col' EXCEEDS RECORD LENGTH MEMBER 'name' NOT FOUND IN LIBRARY INVALID PARAMETER 'parameter' [IN
RC=24
FILE 'fn ft fm' IS NOT A LIBRARY NO ENTRIES IN LIBRARY 'fn ft fm'
INVALID LINE NUMBER 'line number' INCOMPLETE FILEID SPECIFIED RC=2lJ INVALID * IN FILEID RC=20 ERROR Inn' READING FILE 'fn ft fm' DISK 'mode' NOT ACCESSED RC=36
RC=24
RC=32
THE OPTION 'option' FIELD]
RC=32
RC=32
RC=24 FROM DISK RC=100 200 IBM VM/370 CMS Command and Macro Reference
Previous Page Next Page