How do you update an existing member on a master file from a PDS in batch?

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

Description:

Need to apply vendor code to a member that exists on a master file. The vendor code is in a PDS.

Solution:

Using the JCL below:

/ //STEP01  EXEC  PGM=AFOLIBR,PARM='NRJS,NJTA'                  
//SYSPRINT  DD    SYSOUT=*                                      
//OSJOB       DD    DUMMY                                         
//AUXDD      DD    DISP=SHR,DSN=your.pds.file                 
//MASTER    DD    DISP=SHR,DSN=your.master.file
//SYSIN       DD    *                                             
-SEL member                                                       
-DESC Update from vendor code                                       
-AUX AUXDD(member)                                                
-REP ALL                                                           
//