The task can be made to use a different file than it would normally by file-equating the TITLE attribute of the file. The simplest way to do this is by using the following syntax:
<intname> = <file title>
If the file title includes “ON” the value of the KIND attribute will be set to PACK.
Examples
The following example illustrates the use of the <intname> = <file title>
RUN OBJECT/PROG; FILE INFILE = (JACOB)INPUT/DATA ON ORDSPK;
This form of the file equation syntax changes the TITLE attribute of the file. When the task tries to open the file that has the internal name INFILE, the file equation will cause it to open the file (JACOB)INPUT/DATA ON ORDSPK.
The following is an example of alternate syntax for changing the TITLE attribute of a file:
RUN OBJECT/PROG; FILE INFILE (TITLE = (JACOB)INPUT/DATA ON ORDSPK);
This syntax enables other attributes to be specified at the same time. For more information, refer to Assigning File Attributes.