Rational Developer for System z
PL/I for Windows, Version 7.6, Programming Guide

Defining and using consecutive data sets

Printer-destined files
Using stream-oriented data transmission
Defining files using stream I/O
ENVIRONMENT options for stream-oriented data transmission
Creating a data set with stream I/O
Essential information
Example
Accessing a data set with stream I/O
Essential information
Example
Using PRINT files
Controlling printed line length
Overriding the tab control table
Using SYSIN and SYSPRINT files
Controlling input from the console
Using files conversationally
Format of data
Stream and record files
Capital and lowercase letters
End of file
Controlling output to the console
Format of PRINT files
Stream and record files
Example of an interactive program
Using record-oriented I/O
Defining files using record I/O
ENVIRONMENT options for record-oriented data transmission
Creating a data set with record I/O
Essential information
Accessing and updating a data set with record I/O
Essential information
Examples of consecutive data sets

The sections that follow describe consecutive data set organization and explain how to create, access, and update consecutive data sets.

In a data set with consecutive organization, records are organized solely on the basis of their successive physical positions. In other words, when the data set is created, records are written consecutively in the order in which they are presented. You can retrieve the records only in the order in which they were written.

The information in this chapter applies to files using the CONSECUTIVE option of the ENVIRONMENT attribute that are associated with either a native or DDM data set. PL/I Presentation Manager supports only native data sets.


Terms of use | Feedback

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