Command reference / job

TFRJOB

Transfer Job

The Transfer Job (TFRJOB) command transfers a job to the specified job queue. The job that is transferred is the one where this command is issued. If the job being transferred is an interactive job, it is given the highest priority on the job queue. New routing data and request data can be specified for the job when it is transferred. If objects allocated to the previous routing step are needed in the new routing step, they must be allocated again. If files opened in the previous routing step are needed in the new routing step, they must be opened again.

Allowed environments: *ALL. Positional parameters: 1.

Restrictions

Parameters

JOBQ Job queue

Specifies the qualified name of the job queue to which the job is transferred. This is a required parameter.

Type
*QUAL
Required
Yes
Case
Uppercase
Qualifier 1: Job queue: name
Specify the name of the job queue.
Qualifier 2: Library: name
Specify the library where the job queue is located.
*LIBL
All libraries in the thread's library list are searched until a match is found.
*CURLIB
The current library for the thread is used to locate the object. If no library is specified as the current library for the thread, the QGPL library is used.
Qualified parts (object, then library; write LIBRARY/OBJECT)

Job queue Job queue

Type
*NAME
Required
No
Length
10
Case
Uppercase

Library Library

Type
*NAME
Required
No
Default
*LIBL
Length
10
Case
Uppercase

Suggested / special values: *LIBL, *CURLIB

RTGDTA Routing data

Specifies the routing data used to start the next routing step in the job. The routing data is used to determine the routing entry that identifies the program that the job runs.

Type
*CHAR
Required
No
Default
QCMDI
Length
80
Case
Uppercase

Suggested / special values: QCMDI, *RQSDTA

QCMDI
This routing data matches a routing entry in the IBM-supplied subsystem descriptions, which starts a routing step processed by the IBM-supplied control language processor, QCMD, in the QSYS library.
*RQSDTA
The first 80 characters of the request data specified in the Request data or command (RQSDTA) parameter of this command are also used as the routing data for the routing step.
character-value
Specify the character string that is used as the routing data for starting the routing step. A maximum of 80 characters can be entered, enclosed in apostrophes if necessary.

RQSDTA Request data or command

Specifies the request data that is placed as the last entry in this job's message queue. The request data can be a CL command to be run or a string of characters used by another program.

Type
*CHAR
Required
No
Default
*NONE
Length
256
Case
Uppercase

Suggested / special values: *NONE, *RTGDTA

*NONE
No request data is placed in the job's message queue.
*RTGDTA
The routing data specified in the Routing data (RTGDTA) parameter is also placed at the end of the job's message queue.
character-value
Specify the character string that is placed at the end of the job's message queue for use by the new routing step or some subsequent routing step in the job. A maximum of 256 characters can be entered, enclosed in apostrophes if necessary.

Examples

TFRJOB JOBQ(QGPL/APPLICQ) RTGDTA(APPLICS)

This command transfers the job in which the command is entered to the APPLICQ job queue in the QGPL library. The job is routed using the routing data APPLICS. If the job is an interactive job, the job queue must be allocated by an active subsystem.

IBM command documentation

Generated from os/cl/catalog/TFRJOB.json and os/cl/help/TFRJOB.json.