Example 4

The following example shows the JCL and control statements required to take two copies of the same log stream partition, using the SETBRCUR and REPBRCUR options, and then to delete the log stream partition using the DELBRCUR option.

Figure 1. DFHJUP program, example 4
//ARCHJNL  JOB (accounting information),CLASS=A
//ARCHJNL1 EXEC PGM=DFHJUP
//STEPLIB   DD DSNAME=CICSTS54.CICS.SDFHLOAD,DISP=SHR
//SYSPRINT  DD SYSOUT=A,DCB=RECFM=FBA
//SYSUT1    DD DSNAME=CICSAA#.CICSDC1.JRNL001,
//             DCB=BLKSIZE=32760,
//             SUBSYS=(LOGR,DFHLGCNV,
//             'TO=(,12:00),GMT',
//             'COMPAT41,SETBRCUR')
//SYSUT4    DD DSNAME=JRNL001.ARCHIVE1,DISP=(NEW,CATLG),
//             UNIT=SYSDA,VOL=SER=USRPAK,
//             SPACE=(TRK,(3,1))
//SYSIN     DD *
*-----------------------------------------------------*
*    CONTROL STATEMENT : DEFAULTS                     *
*                INPUT = SYSUT1                       *
*               OUTPUT = SYSUT4                       *
* SELECTION QUALIFIERS :                              *
*           1. DEFAULT = ALL INPUT RECORDS            *
*-----------------------------------------------------*
OPTION COPY
END
//ARCHJNL2 IF (ARCHJNL1.RC = 0) THEN
//ARCHJNL1 EXEC PGM=DFHJUP
//STEPLIB   DD DSNAME=CICSTS54.CICS.SDFHLOAD,DISP=SHR
//SYSPRINT  DD SYSOUT=A,DCB=RECFM=FBA
//SYSUT1    DD DSNAME=CICSAA#.CICSDC1.JRNL001,
//             DCB=BLKSIZE=32760,
//             SUBSYS=(LOGR,DFHLGCNV,,REPBRCUR)
//SYSUT4    DD DSNAME=JRNL001.ARCHIVE2,DISP=(NEW,CATLG),
//             UNIT=SYSDA,VOL=SER=USRPAK,
//             SPACE=(TRK,(3,1))
//SYSIN     DD *
*-----------------------------------------------------*
*    CONTROL STATEMENT : DEFAULTS                     *
*                INPUT = SYSUT1                       *
*               OUTPUT = SYSUT4                       *
* SELECTION QUALIFIERS :                              *
*           1. DEFAULT = ALL INPUT RECORDS            *
*-----------------------------------------------------*
OPTION COPY
//ARCHJNL2 ENDIF
//JNLDEL   JOB (accounting information),CLASS=A
//IEFBR14  EXEC PGM=IEFBR14
//LOGSTRM DD DSNAME=CICSAA#.CICSDC1.JRNL001,
//           SUBSYS=(LOGR,DFHLGCNV,,DELBRCUR)
//*


dfha6mg.html | Timestamp icon Last updated: Monday, 5 June 2017