Replace an existing member on a master file from a PO/PS by batch
search cancel

Replace an existing member on a master file from a PO/PS by batch

book

Article ID: 54958

calendar_today

Updated On:

Products

Librarian

Issue/Introduction

How to replace an existing member on the master file from PO/PS file?

Environment

Release:ALL

Resolution

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
//

 

Additional Information

For more information, see the -AUX Statement -- Add Records of Another File to a Librarian Master File.