SNA NRJE User/Programmer Reference Manual (30292-90006)

Chapter 5 163
User Intrinsics
NRJESubmit
The settings for
Direct
are as follows:
An odd number means your job file is written
directly. Any translation and compression will be
done during transmission of the job file to the host.
An even number means that any required
translation or compression is done while copying the
files you specified in
FileList
to the spool file of
your job.
Table 5-4, in this intrinsic’s description, shows how the
Direct and SubCode parameters relate to each other.
SpoolNumber
An output double integer variable. The
SpoolNumber
variable contains an MPE spool file
identification number of the first host job successfully
submitted with a given NRJESubmit.
When NRJESubmit is not successful in submitting any
host job, the contents of
SpoolNumber
are undefined.
Result
An eight-element integer output array (required).
The
Result
array contains error codes that occurred
during execution of this intrinsic.
The first element of the
Result
array is set to zero if no
errors took place. The structure of the
Result
array is
described in “Parameters Common to NRJE Intrinsics”
in the introduction to this chapter.
Always test the first element of immediately after you
call this intrinsic. If the first element of
Result
is not
zero,test the other elements of
Result
to determine the
nature of the problem that has occurred.
Description
The NRJESubmit intrinsic calls the NRJE2Submit intrinsic to accomplish
the submit process. The call is made with the
PR
,
PU
, and
FO
parameters
blank because NRJESubmit cannot handle output routing. NRJE2Submit
breaks the input stream into spool files on the basis of host jobs (one
spool file per host job), and returns a list of the MPE spool file IDs to
NRJESubmit. NRJESubmit then returns the first spool file ID in that list.
Console commands may be embedded in the submitted input files. If the
submitter has NM capability, or an embedded command is one of those
allowed to all users (specified in the NMMGR Workstation Data
screen), the console command is passed on as part of the job. Otherwise,
the command is stripped out and a warning message is written to
$STDLIST. (The remainder of the job is submitted.)