Using an inline data file

An inline data file is a data file that is included as part of a batch job when the job is read by a reader or a submit jobs command. An inline data file is delimited in the job by a //DATA command at the start of the file and by an end-of-data delimiter at the end of the file. The end-of-data delimiter can be a user-defined character string or the default of //.

The // must appear in positions 1 and 2. If your data contains a // in positions 1 and 2, you should use a unique set of characters such as:

// *** END OF DATA

To specify this as a unique end-of-data delimiter, the ENDCHAR parameter on the //DATA command should be coded as:

ENDCHAR('// *** END OF DATA')
Note:Inline data files can be accessed only during the first routing step of a batch job. If a batch job contains a Transfer Job (TFRJOB) , a Reroute Job (RRTJOB) , or a Transfer Batch Job (TFRBCHJOB) command, the inline data files cannot be accessed in the new routing step.

An inline data file can be either named or unnamed. For an unnamed inline data file, either QINLINE is specified as the file name in the //DATA command or no name is specified. For a named inline data file, a file name is specified.

A named inline data file has the following characteristics:

To use a named inline data file, you must either specify the file name in the program or use an override command to change the file name specified in the program to the name of the inline data file. The file must be opened for input only.

An unnamed inline data file has the following characteristics:

To use an unnamed inline data file, do one of the following:

If your high-level language requires unique file names within one program, you can use QINLINE as a file name only once. If you need to use more than one unnamed inline data file, you can use an override file command in the program to specify QINLINE for additional unnamed inline data files.
Note:If you run commands conditionally and process more than one unnamed inline data file, the results cannot be predicted if the wrong unnamed inline data file is used.

Open considerations for inline data files

The following considerations apply to opening inline data files:


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]