Start RJE Session (STRRJESSN)

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

Start RJE Session

The STRRJESSN command starts a session. Each session that is active or pending restart must have a unique name. In addition, STRRJESSN controls the operation of automatic restart for that session. If the default values are used, no attempt will be made to restart the session if it ends abnormally.

When readers and writers are started, start commands can be sent to the host subsystem to start the associated host functions. If you specify SNDSTRCMD(*YES), only the start commands for the readers and writers being started are sent. If the host subsystem reader or writer is already started, some host subsystems return error messages. RJE ignores these messages. If you specify SNDSTRCMD(*NO), the start commands for the specified readers and writer are not sent.

Error messages for STRRJESSN

*ESCAPE Messages

RJE0012
RJE session &1 in &2 is already active.
RJE0024
Errors found. Processing of request ended.
RJE0045
Session &1 needs at least two communications entries.
RJE0228
You require job control authority.
Top

Parameters

Keyword Description Choices Notes
SSND RJE session description Qualified object name Required, Positional 1
Qualifier 1: RJE session description Name
Qualifier 2: Library Name, *LIBL, *CURLIB
RDRS Start RJE readers *YES, *NO Optional, Positional 2
WTRS Start RJE writers *YES, *NO Optional, Positional 3
SNDSTRCMD Send HOST start commands *YES, *NO Optional
CLRMSGQ Clear RJE message queue *YES, *NO Optional
RETRIES Number of retries 1-99, *NONE Optional
INTERVAL Retry interval 1-60, 10, *NONE Optional
PGM Program to call Single values: *NONE
Other values: Qualified object name
Optional
Qualifier 1: Program to call Name
Qualifier 2: Library Name, *LIBL, *CURLIB
Top

RJE Session Desc (SSND)

Specifies the qualified name of the session description for the session being started.

The possible library values are:

session-description-name: Specify the name of the session description. This session description must have been created by the CRTRJECFG or CRTSSND command.

Top

Start RJE Readers (RDRS)

Specifies whether the readers defined in the session description are started.

The possible values are:

Top

Start RJE Writers (WTRS)

Specifies whether the writers defined in the session description are started.

The possible values are:

Top

Snd Host Start Cmd (SNDSTRCMD)

Specifies whether, when the session is started, commands are sent to the host subsystem to start its readers and writers.

The possible values are:

Top

Clear RJE MSGQ (CLRMSGQ)

Specifies whether the messages from previous sessions are printed and cleared from the session description message queue.

The possible values are:

Note: The CLRMSGQ parameter only takes effect when the session is initially started. If the session is restarted by automatic restart, CLRMSGQ is set to *NO.

Top

Number of Retries (RETRIES)

Specifies the number of times automatic restart will attempt to restart a session that has ended abnormally.

The possible values are:

Top

Retry Interval (INTERVAL)

Specifies the length of time in minutes between each retry attempt.

The possible values are:

Top

Program to Call (PGM)

Specifies a user program that will be called by automatic restart prior to each restart attempt. If automatic restart is activated, a user program should be used to recover the connection to the host system. RJE makes no attempt to recover this connection.

The possible values are:

Note: The user is responsible for providing the program and for ensuring that it runs successfully, and returns control to RJE.

If a user program is specified when the RETRIES parameter is *NONE, an error message is issued.

Top

Examples

None
Top

Error messages

*ESCAPE Messages

RJE0012
RJE session &1 in &2 is already active.
RJE0024
Errors found. Processing of request ended.
RJE0045
Session &1 needs at least two communications entries.
RJE0228
You require job control authority.
Top