April 27, 1981
244.2 IBM VM/370 User's Guide
Page of GC20-1819-2 As Updated April 27, 1981 by TNL SN25-0828 For 5748-XE1 The fileid must be specified either in the FSCB for a file or
FSREAD, FSWRITE, FSOPEN, or FSERASE macro instruction you use
references the file.
on the
that FSCBITNO: For an FSCB without the FORM=E option, the record or item
number-indicates the relative record number of the next record to be
read or written; it can be changed with the RECNO option. The default
value for this field is o. When you are reading files, a 0 indicates
that records are to be read sequentially, beginning with the first
record in the file. When you are writing files, a 0 indicates that
records are to be written sequentially, beginning at the first record
following the end of the file, if the file already exists, or with
record 1, if it is a new file.
For an FSCB generated with the
contains the record or item number. FORM=E option, the FSCBAITN field
The FSCBITNO field is reserved.
Whenever you read discontiguous files in CMS (that is, files with
missing records), the input buffer will be filled with the appropriate
number of bytes. Be aware that the flag byte in the FSCB may not
reflect whether the input buffer contains generated data items from
RDBUF. FSCBBQff: The buffer address, specified in the BUFFER option, indicates
the label of the buffer from which the record is to be written or into
which the record is to be read. You should always supply a buffer large
enough to accommodate the longest record you expect to read or write.
This field must be specified, either in the FSCB, or on the FSREAD or FSWRITE macro instruction. FSCBSIZE: This field indicates the number or nytes are read or written-with each read or write operation. The default value is O. If
the buffer that you use represents the full length of the records you
are going to be reading or writing, you can use the BSIZE option to set
this field equal to your buffer length; when you are writing
variable-length records, use the BSIZE operand to indicate the length of
each record you write. This field must be specified. FSCB1Y: This field indicates the record format (RECFM) of the file. The
default value is F (fixed).
FSCBFLG: The flag byte is X'20' indicating an extended FSCB generated when-the FOBM=E option is coded on the FSCB macro instruction. FSCBNQ!T: For an FSCB without the FORM=E option, this field contains the
number of whole records that are to be read or written in each read or
write operation. For fixed-length records, you can use the NOREC option
with the BSIZE option to block and deblock records. For variable-length
records, the NOREC parameter must be 1. The default for the FSCBNOIT field is 1.
For an FSCB generated with the FORM=E option, the FSCBANIT
contains the number of whole records to be read or written. FSCBNOIT field is reserved.
field
The Following a read operation, this field contains the number of
bytes that were actually read, so that if you are reading a
variable-length file, you can determine the size of the last record
read. The FSREAD macro instruction places the information from this
field into register o.
FSCBAITN: The alternate record or item number indicates the relative record-number of the next record to be read or written in an extended FSCB format. See the description of the FSCBITNO field for the usage of
this field.
section 13. programming for the CMS Environment 245
Previous Page Next Page