6.2.40.8 WRITE for Relative Files
For OUTPUT files, the WRITE statement causes the following actions:
- If ACCESS IS SEQUENTIAL is specified:
The first record released has relative record number 1, the second
record released has relative record number 2, the third number 3, and
so on.
If the RELATIVE KEY is specified in the File-Control entry, the
relative record number of the record just released is placed in the
RELATIVE KEY during execution of the WRITE statement.
- If ACCESS IS RANDOM or ACCESS IS DYNAMIC is specified, the RELATIVE
KEY must contain the desired relative record number for this record
before the WRITE statement is issued. When the WRITE statement is
executed, this record is placed at the specified relative record
number position in the file.
For I-O files, either ACCESS IS RANDOM or ACCESS IS DYNAMIC must be
specified; the WRITE statement inserts new records into the file. The
RELATIVE KEY must contain the desired relative record number for this
record before the WRITE statement is issued. When the WRITE statement is
executed, this record is placed at the specified relative record number
position in the file.
© 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.