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

Using data sets and files

Associating data sets with files under z/OS
Associating several files with one data set
Associating several data sets with one file
Concatenating several data sets
Accessing HFS files under z/OS
Associating data sets with files under z/OS UNIX
Using environment variables
Using the TITLE option of the OPEN statement
Attempting to use files not associated with data sets
How PL/I finds data sets
Specifying characteristics using DD_DDNAME environment variables
APPEND
BUFSIZE
CHARSET for record I/O
CHARSET for stream I/O
DELAY
DELIMIT
LRECL
LRMSKIP
PROMPT
PUTPAGE
RECCOUNT
RECSIZE
SAMELINE
SKIP0
TYPE
Establishing data set characteristics
Blocks and records
Information interchange codes
Record formats
Fixed-length records
Variable-length records
Undefined-length records
Data set organization
Labels
Data Definition (DD) statement
Use of the conditional subparameters
Data set characteristics
Using the TITLE option of the OPEN statement
Associating PL/I files with data sets
Opening a file
Specifying characteristics in the ENVIRONMENT attribute
The ENVIRONMENT attribute
Record formats for record-oriented data transmission
Record formats for stream-oriented data transmission
RECSIZE option
BLKSIZE option
Record format, BLKSIZE, and RECSIZE defaults
GENKEY option — key classification
SCALARVARYING option — varying-length strings
KEYLENGTH option
ORGANIZATION option
Data set types used by PL/I record I/O
Setting environment variables
PL/I standard files (SYSPRINT and SYSIN)
Redirecting standard input, output, and error devices

Your PL/I programs process and transmit units of information called records. A collection of records is called a data set. Data sets are physical collections of information external to PL/I programs; they can be created, accessed, or modified by programs written in PL/I or other languages or by the utility programs of the operating system.

Your PL/I program recognizes and processes information in a data set by using a symbolic or logical representation of the data set called a file. This chapter describes how to associate data sets with the files known within your program. It introduces the five major types of data sets, how they are organized and accessed, and some of the file and data set characteristics you need to know how to specify.

Note:
INDEXED implies VSAM and is supported only under batch.

Terms of use | Feedback

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