Used within a job to include the contents of a file.
Description |
 |
Use the ##FD command within a job to include the contents of the Infile. ##FD files can be nested up to 20 levels deep. When
a job file is submitted, NRJE scans each record for occurrences
of ##FD in columns 1-4. Whenever it finds one,
it opens the Infile and adds the contents to the job being spooled for
transmission to the host. Any options specified must be compatible
with the SUBMIT options and the workstation configuration.
If a job card is included in the Infile, then its format must adhere to the same syntax as
that specified for the SUBMIT command. Refer to the "Description" section
of the SUBMIT command discussed later in this chapter.
If a file is built that requests input from $STDIN or $STDINX, the optional comment field on the ##FD card should be used to identify the type of input
that is expected. Then, when the job input stream is constructed,
the comment is printed at the user's terminal ahead of the standard
NRJE message:
ENTER INPUT ENDING WITH ":EOD"
|
For example, if an Infile DATA1 contains the ##FD record shown in example three below, then the
following will appear at the user's terminal:
THIS INPUT IS FOR FILE DATA1.
ENTER INPUT ENDING WITH ":EOD"
|
The ##FD card, in this case, prompts the user for interactive
input into the DATA1 file. Note that the comment has been capitalized
by NRJE.