ILE COBOL SELECT clause

 

iSeries™ users can access remote CICS® files with the ILE COBOL programming language.

However, the ILE COBOL SELECT clause must use the file organizations and access methods specified in the following table.

Table 1. ILE COBOL file organizations and access methods
ILE COBOL programming language VSAM data set organization
Program-given access methods ESDS RRDS KSDS VSAM Path Program-given organization
Sequential Sequential X X E E
Relative

Sequential
Random
Dynamic

E
E
E

X
X
X

E
E
E

E
E
E

Indexed

Sequential
Random
Dynamic





X
X
X

X
X
X

Where:

X

Shows the access method is allowed.

E

Shows that ILE COBOL programming language allows the access method but that the open fails when accessing the VSAM data set. An iSeries message is created.

Shows the option is never valid for nonkeyed files. An iSeries message occurs whenever indexed file organization is selected for any nonkeyed file. This is true even when the file is a local file.
Notes:

  1. When accessing a VSAM path, the WITH DUPLICATE phrase should be used.

  2. When accessing a VSAM KSDS, the WITH DUPLICATE phrase should not be used.

 

Parent topic:

ILE COBOL considerations