April 27, 1981
normally located on the system disk. To allow for proper macro
expansion in a system supportingVM/370 System Extensions (Program No. 5748-XE1), CMSBSE MACLIB must be used in addition to CMSLIB 8ACLIB. There are macros to manipulate CMS disk files, to handle terminal
communications, to manipulate unit record and tape input/output, and to
trap interruptions. These macros are discussed in general terms here;
for complete format descriptions, seeVM/370 CMS gnd MACROS FOR DISK FILE MANIPULATION Disk files are described in CMS by means of a file system control block (FSCB). The macro instructions that manipulate disk files use FSCBs to identify and describe the files. When you want to manipulate a CMS file, you can refer to the file either by its file identifier,
specifying 'filename filetype filemode' in quotation marks, or you can
refer to theFSCB for the file, specifying FSCB=fscb, where fscb is the
label on anFSCB macro.
To establish anFSCB for a file, you can use the FSCB macro
instruction specifying a file identifier; for example:
INFILEFSCB 'INPUT TEST A1' You can also provide, on the FSCB macro instruction, descriptive
information to be used by the input and output macros. If you do not
code anFSCB macro instruction for a file, an FSCB is created inline
(following the macro instruction) when you code anFSREAD, FSWRITE, or FSOPEN macro instruction.
The format of anFSCB is listed below, followed by a description of
each of t he fields.LaQ§1 FSCBCOMM FSCBFN FSCBFT FSCBFM FSCBITNO FSCBBUFF FSCBSIZE FSCBFV FSCBFLG FSCBNOIT FSCBNORD FSCBAITN FSCBANIT FSCBWPTR FSCBRPTR DC DC DC DC DC DC DC DC EQU DC DC DC DC DC DC CL8' , CL8' , CL8' , CL2' , H'O' A'O' F'O' CL2'F' FSCBFV+1 H' 1 '
AL4(0) AL4 (0) AL4 (1)
AL4(0) AL4 (0) De,§cri:Q1io,!! File system command
Filename
F iletype
Filemode
Relative record number(RECNO) Address of buffer (BUFFER) Number of bytes to read or write (BSIZE) Record format -F or V (RECFf'!) Flag byte
Number of records tc read or write(NOREC) Number of bytes actually read
ExtendedFSCB relative record number
ExtendedFSCB relative number of records
ExtendedFSCB relative write pointer
ExtendedFSCB relative read pointer
The fieldsFSCBAITN, FSCBANIT, FSCBWPTR, and FSCBRPTR are only generated
in theFSCB when the extended format FSCB is requested (FORM=E is coded
on theFSCB macro instruction). In this case, the fields FSCBITNO and FSCBNOIT are reserved fields. Extended format FSCBs must be used to
manipulate files larger than 65,533 items.
The labels shown above are not generated by theFSCB macro; to reference
fields within theFSCB by these labels, you must use the FSCBD macro
instruction to qenerate aDSECT. 244 IBM VM/370 CMS User's Guide
normally located on the system disk. To allow for proper macro
expansion in a system supporting
communications, to manipulate unit record and tape input/output, and to
trap interruptions. These macros are discussed in general terms here;
for complete format descriptions, see
specifying 'filename filetype filemode' in quotation marks, or you can
refer to the
label on an
To establish an
instruction specifying a file identifier; for example:
INFILE
information to be used by the input and output macros. If you do not
code an
(following the macro instruction) when you code an
The format of an
each of t he fields.
AL4
AL4
Filename
F iletype
Filemode
Relative record number
Number of records tc read or write
Extended
Extended
Extended
Extended
The fields
in the
on the
manipulate files larger than 65,533 items.
The labels shown above are not generated by the
fields within the
instruction to qenerate a