ISPF – How to Identify the Changes You’ve Made

Let’s imagine you have the following JCL and you need to change it to accommodate  your needs:


//COMPRESS JOB (),'COMPRESS',NOTIFY=&SYSUID,CLASS=A,MSGLEVEL=(1,1),
// MSGCLASS=X
//**************************************************
//*  THIS IS AN EXAMPLE - THIS LINE WILL BE DELETED
//**************************************************
//STEP1 EXEC PGM=IEBCOPY
//SYSPRINT DD SYSOUT=*
//INPUT DD DSNAME=SYS1.EXAMPLE.FILE,DISP=SHR
//OUTPUT DD DSNAME=SYS1.EXAMPLE.FILE,DISP=SHR
//SYSIN DD *
COPY INDD=INPUT,OUTDD=OUTPUT
/*

 

For example, your changes require the deletion of the comment line and changing the dataset name of the INPUT and OUTPUT DD cards:


//COMPRESS JOB (),'COMPRESS',NOTIFY=&SYSUID,CLASS=A,MSGLEVEL=(1,1),
// MSGCLASS=X
//**************************************************
//**************************************************
//STEP1 EXEC PGM=IEBCOPY
//SYSPRINT DD SYSOUT=*
//INPUT DD DSNAME=SYS1.CHANGED.FILE,DISP=SHR
//OUTPUT DD DSNAME=SYS1.CHANGED.FILE,DISP=SHR
//SYSIN DD *
COPY INDD=INPUT,OUTDD=OUTPUT
/*

 

To identify the changes that have been made to the JCL, you only need to issue the command COMP * X in the command line for the changes to be highlighted:


000001 //COMPRESS JOB (),'RMF',NOTIFY=&SYSUID,CLASS=A,MSGLEVEL=(1,1),
000002 // MSGCLASS=X
====== //*************************************************
====== //* COMPRESS A DATA SET USING IEBCOPY
====== //*************************************************
.OAAAA //*************************************************
.OAAAB //*************************************************
000005 //STEP1 EXEC PGM=IEBCOPY
000006 //SYSPRINT DD SYSOUT=*
====== //INPUT DD DSNAME=SYS1.EXAMPLE.FILE,DISP=SHR
====== //OUTPUT DD DSNAME=SYS1.EXAMPLE.FILE,DISP=SHR
.OAAAC //INPUT DD DSNAME=SYS1.CHANGED.FILE,DISP=SHR
.OAAAD //OUTPUT DD DSNAME=SYS1.CHANGED.FILE,DISP=SHR
000009 //SYSIN DD *
000010 COPY INDD=INPUT,OUTDD=OUTPUT
000011 /*

Notice that in the numbering area there will be the indication of what the code used to look like (======) and how it looks now (.OAAAx).

1 Comment

Leave a Reply

Your email address will not be published.


*


This site uses Akismet to reduce spam. Learn how your comment data is processed.