Rational Developer for System z
Enterprise COBOL for z/OS, Version 4.1, Programming Guide


Accessing HFS files using QSAM

You can process byte-stream files in the hierarchical file system (HFS) as ORGANIZATION SEQUENTIAL files using QSAM. To do this, specify as the assignment-name in the ASSIGN clause either a ddname or an environment-variable name.

ddname
A DD allocation that identifies the file with the keywords PATH= and FILEDATA=BINARY
Environment-variable name
An environment variable that holds the runtime value of the HFS path for the file

Observe the following restrictions:

Usage notes

For compatibility with releases of IBM COBOL before COBOL for OS/390 & VM Version 2 Release 2, you can also specify FILEDATA=TEXT when using a DD allocation for HFS files, but this use is not recommended. To process text files in the HFS, use LINE SEQUENTIAL organization. If you use QSAM to process text files in the HFS, you cannot use environment variables to define the files.


Terms of use | Feedback

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