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 the data set.
>>-TITLE--(--expression--)-------------------------------------><
The expression must yield a character string with the following syntax:
>>-+-alternate_ddname--------------------+--------------------->< | .---------------------------------. | | V | | '---/filespec--+---+--+-----------+-+-' '-,-' '-dd_option-'
open file(Inventry) title('PARTS');
For more information about options of the DD_DDNAME 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.