Example: use JCL to start an XRC session

You can run the following JCL example as a batch job, or process it from a SYS1.PROCLIB member to automate the procedures that are shown here. This example shows how to use JCL to start an XRC session, add a single volume pair to the session, and route message output to a specific user ID.

//IKJEFT01  JOB,
     //          MSGLEVEL=(1,1),MSGCLASS=A,NOTIFY=user ID
     //STARTXRC  EXEC PGM=IKJEFT01
     //STEPLIB DD DSN=authorized.cmdlib,DISP=SHR
     //SYSTSPRT DD SYSOUT=*
     //SYSTSIN  DD *
       PROFILE MSGID
       XSTART DALLAS SESSIONTYPE(XRC) ERRORLEVEL(VOLUME) MSGROUTEID(user ID)
       XADDPAIR DALLAS VOLUME(PRIM01,SECO01) MSGROUTEID(user ID)
     /*