Rational Developer for System z
Enterprise PL/I for z/OS, Version 3.8, Programming Guide

Entry-sequenced data sets

Loading an ESDS
Using a SEQUENTIAL file to access an ESDS
Defining and loading an ESDS
Updating an ESDS
Key-sequenced and indexed entry-sequenced data sets
Alternate Indexes for KSDSs or Indexed ESDSs
Relative-record data sets

The statements and options allowed for files associated with an ESDS are shown in Table 27.

Table 27. Statements and options allowed for loading and accessing VSAM entry-sequenced data sets
File
declaration1
Valid statements, with
options you must include
Other options you can
also include
SEQUENTIAL OUTPUT
BUFFERED
WRITE FILE(file-reference)
FROM(reference);
 
LOCATE based-variable
FILE(file-reference);
KEYTO(reference)
 
 
SET(pointer-reference)
SEQUENTIAL INPUT
BUFFERED
READ FILE(file-reference)
INTO(reference);
 
READ FILE(file-reference)
SET(pointer-reference);
 
READ FILE(file-reference);
KEYTO(reference) or
KEY(expression)3
 
KEYTO(reference) or
KEY(expression)3
 
IGNORE(expression)
SEQUENTIAL UPDATE
BUFFERED
READ FILE(file-reference)
INTO(reference);
 
READ FILE(file-reference)
SET(pointer-reference);
 
READ FILE(file-reference)2
 
WRITE FILE(file-reference)
FROM(reference);
 
REWRITE FILE(file-reference);
KEYTO(reference) or
KEY(expression)3
 
KEYTO(reference) or
KEY(expression)3
 
IGNORE(expression)
 
KEYTO(reference)
 
 
FROM(reference)
and/or
KEY(expression)3
Notes:
  1. The complete file declaration would include the attributes FILE, RECORD, and ENVIRONMENT; if you use either of the options KEY or KEYTO, it must also include the attribute KEYED.
  2. The statement "READ FILE(file-reference);" is equivalent to the statement "READ FILE(file-reference) IGNORE (1);".
  3. The expression used in the KEY option must be a relative byte address, previously obtained by means of the KEYTO option.

Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)