The XMIT JCL statement is used to transmit JCL job streams, in-stream data, and in-stream procedures to another node in a network for execution. This allows jobs to be submitted to remote systems while still using a single JCL stream from the originating system.
Key Benefit:
XMIT allows for centralized job submission while distributing processing across multiple systems in a network, simplifying cross-system workload management.
1234//name XMIT parameter[,parameter]... // data // more data /*
Parameter | Description |
---|---|
DEST=nodename | Specifies the destination node where the job should be transmitted |
DLM=delimiter | Optional. Specifies a different delimiter than the default /* to mark the end of transmitted data |
SUBCHARS=JES2|JES3 | Optional. Specifies whether to interpret JES2 or JES3 substitution symbols in the transmitted data |
123456//STEP1 XMIT DEST=REMOTSYS //REMOTE JOB (ACCT#),'JOHN DOE',CLASS=A //STEP01 EXEC PGM=PAYROLL //INPUT DD DSN=PAYROLL.DATA,DISP=SHR //OUTPUT DD SYSOUT=A /*
This example transmits a complete job to the system named REMOTSYS. The job will execute on REMOTSYS rather than the submitting system.
123456//STEP1 XMIT DEST=NODE5,DLM=AA //REMOTE JOB (ACCT#),'JANE SMITH',CLASS=A //STEP01 EXEC PGM=INVENTRY //INPUT DD DSN=SALES.DATA,DISP=SHR //OUTPUT DD SYSOUT=A AA
This example uses a custom delimiter 'AA' to mark the end of the transmitted data instead of the default '/*'.
123456//STEP1 XMIT DEST=NYCSYS,SUBCHARS=JES2 //REMOTE JOB (ACCT#),'REPORTS',CLASS=A //STEP01 EXEC PGM=BILLING //INPUT DD DSN=&SYSUID..BILLING.DATA,DISP=SHR //OUTPUT DD SYSOUT=A /*
This example specifies that JES2 substitution characters (like &SYSUID) should be interpreted in the transmitted job.
When using XMIT, be aware of the following networking considerations:
JES2 | JES3 |
---|---|
Uses NJE (Network Job Entry) protocol | Can use BDT (Bulk Data Transfer) or NJE |
Destination format: DEST=nodename or DEST=nodename.userid | Destination format: DEST=nodename |
SUBCHARS=JES2 is default | SUBCHARS parameter may need to be set explicitly |
Issue | Possible Solutions |
---|---|
Job not received at destination |
|
Premature end of transmitted data |
|
Security violations at target system |
|