How do I add history control statements to an existing member in Librarian from a PDS dataset?

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

Issue:

I am 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 do I do that?

 

Environment:

Librarian V4.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