How to replace an existing member on the master file from PO/PS file?
Release:ALL
Use the -AUX ddname as follows.
Sample JCL
From PO file:
//STEP01 EXEC PGM=AFOLIBR,PARM='NRJS,NJTA'
//SYSPRINT DD SYSOUT=*
//OSJOB DD DUMMY
//POFILE DD DISP=SHR,DSN=your.po.file
//MASTER DD DISP=SHR,DSN=your.master.file
//SYSIN DD *
-SEL member
-REP ALL
-AUX POFILE(member)
-END
//
From PS file:
//STEP01 EXEC PGM=AFOLIBR,PARM='NRJS,NJTA'
//SYSPRINT DD SYSOUT=*
//OSJOB DD DUMMY
//PSFILE DD DISP=SHR,DSN=your.ps.file
//MASTER DD DISP=SHR,DSN=your.master.file
//SYSIN DD *
-SEL member
-REP ALL
-AUX PSFILE
-END
//
For more information, see the -AUX Statement -- Add Records of Another File to a Librarian Master File.