How to use the -EMOD X and the difference in results with and without the -EMOD.
Release : ALL
-EMOD X
The -EMOD execution control statement marks the end of one module's control statements and data. Use -END to mark the end of the entire control stream. The -EMOD statement is optional.
The X in column 7, CA Librarian bypasses the hash count check for the module is updated. This lets you apply a duplicate set of updates to the module.
The -EMOD X allows you to perform the same update multiple times to the same member.
And, if X and/or -EMOD is omitted, the following error message will be output and will end with RC=12.
Sample JCL:
//STEP01 EXEC PGM=AFOLIBR,PARM='NRJS,NJTA'
//STEPLIB DD DSN=Prefix.libr.CALJLINK,DISP=SHR
//SYSPRINT DD SYSOUT=*
//MASTER DD DSN=User.libr.master,DISP=SHR
//OSJOB DD DUMMY
//SYSIN DD *
-SEL TEST01
-HST COMMENT: SAMPLE JCL
-REP 010,030
DSN SYSTEM(PRD)
RUN PROGRAM(PGM001)
END
-EMOD X
-END
/*
//
Error Message:
*** ERROR *** HASH COUNTS INDICATE THAT CHANGES ABOVE ARE IDENTICAL TO THOSE OF PREVIOUS UPDATE FOR THIS MODULE.
*** ERROR *** THE LIBRARIAN IS ASSUMING THIS IS AN ACCIDENTAL RERUN AND THE CHANGES HAVE NOT BEEN APPLIED.
*** ERROR *** THIS CHECK MAY BE BYPASSED BY PLACING THE LETTER 'X' IN COLUMN 7 OF THE -EMOD STATEMENT.
*** ERROR *** ONE OR MORE ERROR CONDITIONS FOUND FOR THIS MODULE. ALL ACTIVITY HAS BEEN BYPASSED.