You can use the TITLE option of the OPEN statement to identify
the data set to be associated with a PL/I file, and, optionally,
to provide additional characteristics of that data set.
 >>-TITLE--(expression)-----------------------------------------><
|
The expression must yield
a character string with the following syntax:
 >>-+-alternate_ddname-----------+------------------------------><
'-/filespec-+--------------+-'
'-,--dd_option-'
|
- alternate_ddname
- The name of an alternate DD:ddname environment variable. An alternate DD:ddname environment variable is one not named after a file constant. For example, if you had a file named INVENTRY in your program, and you establish two DD:ddname environment
variables—the first named INVENTRY and the second named
PARTS—you could associate the file with the second one using
this statement:
open file(Inventry) title('PARTS');
- filespec
- Any valid file specification on the system you are using.
- dd_option
- Specifying characteristics using DD:ddname environment variables One or more options allowed in a DD:ddname environment variable. For more about options of the DD:ddname environment variable, see Specifying characteristics using DD:ddname environment variables.
Here is an example of using the OPEN statement in this manner:
open file(Payroll) title('/June.Dat,append(n),recsize(52)');
With this form, PL/I obtains all DD information either from the
TITLE expression or from the ENVIRONMENT attribute of a file declaration. A DD:ddname environment variable is not referenced.
|
This information center is powered by Eclipse technology. (http://www.eclipse.org)