Is there a way to scan for history statements in librarian VSE ?
Component: Librarian
OS: VSE/ESA
The SCAN and SCANR commands scan members from the librarian master files but will not scan the history record.
The LISTH in a -OPT, -ADD, or -SEL control statement used in the Group Processing Option (GPO) utility allow to list all history records.
Here is a JCL example :
* $$ JOB
// JOB
/*
// ASSGN SYS004,DISK,VOL=VOLSER,SHR
// DLBL MASTER,'LIBRAIAN.MASTER.FILE',,DA
// EXTENT SYS004,VOLSER,1,0,RELTRK,NTRKS
// ASSGN SYS008,DISK,VOL=VOLSER,SHR
// DLBL JOBSTR,'LIB.SYSIPT',,SD
// EXTENT SYS008,VOLSER,1,0,RELTRK,NTRKS
// EXEC LIBRPROG,SIZE=AUTO
-OPT GPO
-OPT INDEX
-OPT LISTH
-SEL NAME= ,EXEC
/*
// ASSGN SYS008,IGN
// ASSGN SYS004,DISK,VOL=VOLSER,SHR
// DLBL MASTER,'LIBRAIAN.MASTER.FILE',,DA
// EXTENT SYS004,VOLSER,1,0,RELTRK,NTRKS
// DLBL IJSYSIN,'LIB.SYSIPT',,SD
// EXTENT SYSIPT,VOLSER
ASSGN SYSIPT,DISK,VOL=VOLSER,SHR
// EXEC LIBRPROG,SIZE=AUTO
/*
CLOSE SYSIPT,SYSRDR
/&
* $$ EOJ
For further detail, see Librarian Batch commands