Rational Developer for System z
Enterprise PL/I for z/OS, Version 3.8, Language Reference Manual

Move mode

In move mode, a READ statement transfers a record from the data set to the variable named in the INTO option. A WRITE or REWRITE statement transfers a record from the variable named in the FROM option to the data set. The variables named in the INTO and FROM options can be of any storage class.

The following is an example of move mode input:

Eof_In = '0'b;
on endfile(In) Eof_In = '1'B;
read file(In) into(Data);
do while (¬Eof_In);

·
·
·
/* process record */ read file(In) into(Data); end;

Terms of use | Feedback

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