Can history control statements be added to an existing member in Librarian from a PDS dataset?
search cancel

Can history control statements be added to an existing member in Librarian from a PDS dataset?

book

Article ID: 21868

calendar_today

Updated On:

Products

Librarian

Issue/Introduction

Trying to update an existing member in a Librarian master file from a PDS with the -HIST statement in order to create a history record that would become a permanent part of the module. 

How can this be done? 

 

 

 

 

Environment

Release 4.4 

Resolution

Use the -HST statement for adding/creating the history control statement records.

JCL examples below:

//STEP01 EXEC PGM=AFOLIBR,PARM='NRJS,NJTA'   
//AUXDD DD DSN=YOUR.PDS.DATASET(MEMBER),DISP=SHR   
//MASTER DD DISP=SHR,DSN=YOUR.LIBRARIAN.MASTERFILE   
//OSJOB DD SYSOUT=*   
//SYSPRINT DD SYSOUT=*   
//SYSIN DD *   
-SEL MEMBER   
-DESC ONGOING TEST   
-HST DATA   
-REP ALL   
-AUX AUXDD   
-END  

or

//STEP01 EXEC PGM=AFOLIBR,PARM='NRJS,NJTA'   
//AUXDD DD DSN=YOUR.PDS.DATASET,DISP=SHR   
//MASTER DD DISP=SHR,DSN=YOUR.LIBRARIAN.MASTERFILE   
//OSJOB DD SYSOUT=*   
//SYSPRINT DD SYSOUT=*   
//SYSIN DD *   
-SEL MEMBER   
-DESC ONGOING TEST   
-HST DATA   
-REP ALL   
-AUX AUXDD(MEMBER)   
-END