Need the compare two versions of the same member archieve level 1 & 2.

Document ID : KB000055059
Last Modified Date : 14/02/2018
Show Technical Document Details

Description:

Have a member on a master file that contains 5 archive levels want to compare -1 & -2 versions.

Solution:

Using the SAMPLEJCL below specifies the master file member -2 level number in OLD=. Specify the -1 level number in the NEW=.

//STEP1        EXEC PGM=AFOLIBR,PARM='NJTA,NRJS'                   
//MASTER     DD  DSN=LIBSYS.COB.MASTER,DISP=SHR                   
//SYSPRINT   DD   SYSOUT=*                                        
//OSJOB        DD   DUMMY                                           
//SYSIN         DD       *                                           
-OPT COMPARE                                                        
-SEL member,OLD=-2,NEW=-1