5.2.5.3 Format 3
Format 3 is used to specify variable-length records.
___ Format 3 ___________________________________________________________
| : |
| >>__RECORD__ ____ __VARYING__ ____ __ ______ ________________________> |
| |_IS_| |_IN_| |_SIZE_| |
| |
| >__ _____________________ __ _______________ __ ____________ ________> |
| |_ ______ __integer-6_| |_TO__integer-7_| |_CHARACTERS_| |
| |_FROM_| |
| |
| >__ ________________________________ _______________________________>< |
| |_DEPENDING__ ____ __data-name-1_| |
| |_ON_| |
| |
|________________________________________________________________________|
integer-6
Specifies the minimum number of character positions to be contained in
any record of the file. If integer-6 is not specified, the minimum
number of character positions to be contained in any record of the
file is equal to the least number of character positions described for
a record in that file.
integer-7
Specifies the maximum number of character positions in any record of
the file. If integer-7 is not specified, the maximum number of
character positions to be contained in any record of the file is equal
to the greatest number of character positions described for a record
in that file.
The number of character positions associated with a record description is
determined by the sum of the number of character positions in all
elementary data items (excluding redefinitions and renamings), plus any
implicit FILLER due to synchronization. If a table is specified:
- The minimum number of table elements described in the record is used
in the summation above to determine the minimum number of character
positions associated with the record description.
- The maximum number of table elements described in the record is used
in the summation above to determine the maximum number of character
positions associated with the record description.
If data-name-1 is specified:
- Data-name-1 must be an elementary unsigned integer.
- X Data-name-1 cannot be a windowed date field.
- The number of character positions in the record must be placed into
the data item referenced by data-name-1 before any RELEASE, REWRITE,
or WRITE statement is executed for the file.
- The execution of a DELETE, RELEASE, REWRITE, START, or WRITE statement
or the unsuccessful execution of a READ or RETURN statement does not
alter the content of the data item referenced by data-name-1.
- After the successful execution of a READ or RETURN statement for the
file, the contents of the data item referenced by data-name-1 indicate
the number of character positions in the record just read.
During the execution of a RELEASE, REWRITE, or WRITE statement, the number
of character positions in the record is determined by the following
conditions:
- If data-name-1 is specified, by the content of the data item
referenced by data-name-1.
- If data-name-1 is not specified and the record does not contain a
variable occurrence data item, by the number of character positions in
the record.
- If data-name-1 is not specified and the record contains a variable
occurrence data item, by the sum of the fixed position and that
portion of the table described by the number of occurrences at the
time of execution of the output statement.
During the execution of a READ ... INTO or RETURN ... INTO statement, the
number of character positions in the current record that participate as
the sending data items in the implicit MOVE statement is determined by the
following conditions:
- If data-name-1 is specified, by the content of the data item
referenced by data-name-1.
- If data-name-1 is not specified, by the value that would have been
moved into the data item referenced by data-name-1 had data-name-1
been specified.
© Copyright IBM Corp. 1991, 1998
IBM Library Server Copyright 1989, 2005 IBM Corporation. All rights reserved.
Return to library:
z/OS |
z/OS.e |
TPF |
z/VSE |
z/VM |
IBM Hardware |
IBM System z Redbooks
Glossary:
IBM terminology
Publications:
How to order publications
Readers:
Download IBM Library Reader |
Download IBM Softcopy Reader |
Download Adobe® Acrobat® Reader®
Library management:
Download IBM Softcopy Librarian
Contacts:
Contact z/OS
Adobe, the Adobe logo, Acrobat, the Acrobat logo, and Acrobat Reader are registered trademarks
of Adobe Systems incorporated.