Submit RJE Job (SBMRJEJOB)

Where allowed to run: All environments (*ALL)
Threadsafe: No
Parameters
Examples
Error messages

Submit RJE Job

The SBMRJEJOB command sends an input stream to the host subsystem.

Through the OPTION parameter of this command, an input stream can be sent to the host subsystem immediately. Alternately, a batch job is placed on an RJE reader job queue, and the input stream is sent when the batch job runs.

Through the FILE parameter (*), you can start an interactive reader for direct-workstation input.

Error messages for SBMRJEJOB

*ESCAPE Messages

RJE0003
RJE session &1 is not active.
RJE0004
You are not permitted to access session description &1.
RJE0017
&1 was not found in session description &2.
RJE0024
Errors found. Processing of request ended.
RJE0035
&1 in &2 must be a data-base file.
RJE0041
Remote job was not submitted.
RJE0059
RJE cannot send host command to complete request.
RJE0065
Reader &1 can be used only for interactive jobs.
RJE0067
No members were found in file &1 in &2.
RJE0080
You must define at least one batch reader in session &1.
RJE0112
RJE reader &1 is not available.
RJE0113
No RJE readers are available.
RJE0144
RJE device &3 was not defined in RJE session &1.
RJE0204
FILE(*) is not valid on SBMRJEJOB in batch program.
RJE0216
No SNA sessions are available now. Try later.
RJE3041
&1: Host subsystem rejected exchange record length.
Top

Parameters

Keyword Description Choices Notes
FILE Input file Single values: *
Other values: Qualified object name
Required, Positional 1
Qualifier 1: Input file Name
Qualifier 2: Library Name, *LIBL, *CURLIB
MBR Member Name, *FIRST, *ALL Optional, Positional 2
SSND RJE session description Qualified object name Optional, Positional 3
Qualifier 1: RJE session description Name, QRJE
Qualifier 2: Library Name, *LIBL, *CURLIB
RDR RJE reader identification *AUTO, RD1, RD2, RD3, RD4, RD5, RD6, RD7, RD8, RD9, RD10, RD11, RD12, RD13, RD14, RD15 Optional, Positional 4
CMD Command file *NO, *YES Optional
OPTION Submit RJE job *QUEUE, *IMMED Optional
SNDDLTRCD Send deleted records *NO, *YES Optional
DTATYP Data type *CHAR, *ANY Optional
MAXRCDLEN Maximum record length 1-255, *FIXED Optional
MSGQ Message queue Single values: *REQUESTER, *RDRE, *NONE
Other values: Qualified object name
Optional
Qualifier 1: Message queue Name
Qualifier 2: Library Name, *LIBL, *CURLIB
RESUBMIT Resubmit RJE job *NO, *YES Optional
Top

Input File (FILE)

Specifies the qualified name of the file that contains the input stream being submitted.

The possible values are:

You cannot override the file parameter by specifying *ALL on the MBR parameter for the OVRDBF command. If you do this:

Top

Member (MBR)

Specifies the member being sent to the host subsystem. This parameter applies only if you specified a database file with the FILE parameter.

The possible values are:

Top

RJE Session Desc (SSND)

Specifies the qualified name of the session description that sends the input stream to the host.

The possible values are:

Top

RJE Reader ID (RDR)

Specifies the reader that is associated with the job being submitted.

The possible values are:

Top

Command File (CMD)

Specifies whether the file specified in the FILE parameter is searched for embedded RJE control statements (for example, .. READFILE or .. EOF).

The possible values are:

Top

Submit RJE Job (OPTION)

Specifies whether the reader job is sent to a reader job queue or started immediately.

The possible values are:

Top

Send Del Records (SNDDLTRCD)

Specifies whether blank records are sent to the host subsystem when deleted records are encountered in the database file member.

The possible values are:

When files created through the database join function are submitted, deleted records will only be recognized in the primary part of the logically joined file.

Top

Data Type (DTATYP)

Specifies whether the file specified in the FILE parameter contains data characters less than hex 40.

The possible values are:

Top

Max Rcd Lngth (MAXRCDLEN)

Specifies the maximum input record length for data sent to a host subsystem. The record length range which is supported depends on the type of host subsystem:

For BSC, only *FIXED is valid.

RJE command files are read as 80-byte records. Command file records read from a file with a data record length greater than 80 bytes are truncated to 80 bytes. Command file records read from a file with a data record length less than 80 bytes are padded to 80 bytes. Command file records are always sent to the host as 80-byte records regardless of the value of the MAXRCDLEN parameter.

The possible values are:

Top

Message Queue (MSGQ)

Specifies the qualified name of the message queue to which messages for the reader are sent.

The possible values are:

Top

Resubmit RJE Job (RESUBMIT)

Specifies whether jobs in the queue are resubmitted if they end abnormally.

Note: The job sequence of each reader is preserved unless the jobs were submitted to the *AUTO reader. To use this parameter, a job submitted by CL commands must have a job priority (JOBPTY) of 6, and the user profile that submits reader jobs must have the priority limit (PTYLMT) parameter set from 1 through 5, inclusive. The MAXACT parameter of the reader job queue entries in the RJE subsystem description must be set to 1. A reader job submitted with this parameter can be canceled only from the job queue. Other commands, such as CNLRJERDR OPTION(*IMMED), cause the job to be resubmitted.

The possible values are:

Top

Examples

None
Top

Error messages

*ESCAPE Messages

RJE0003
RJE session &1 is not active.
RJE0004
You are not permitted to access session description &1.
RJE0017
&1 was not found in session description &2.
RJE0024
Errors found. Processing of request ended.
RJE0035
&1 in &2 must be a data-base file.
RJE0041
Remote job was not submitted.
RJE0059
RJE cannot send host command to complete request.
RJE0065
Reader &1 can be used only for interactive jobs.
RJE0067
No members were found in file &1 in &2.
RJE0080
You must define at least one batch reader in session &1.
RJE0112
RJE reader &1 is not available.
RJE0113
No RJE readers are available.
RJE0144
RJE device &3 was not defined in RJE session &1.
RJE0204
FILE(*) is not valid on SBMRJEJOB in batch program.
RJE0216
No SNA sessions are available now. Try later.
RJE3041
&1: Host subsystem rejected exchange record length.
Top