Is there a way to output a list of members that were added and/or updated on a specific date?
Environment : z/OS
Release : ALL
The Panvalet library stores the last update date, so you can use this to extract only the member names that have been added or updated.
By using PAN#2 ++USING PGP and ++PRINT 0-UP,DATEM=mmddyy, you can output a list of members that were added or updated on a specified date.
Please note that this is a process that creates a SYSIN card, so Panvalet commands will also be output.
SAMPLE JCL
//STEP01 EXEC PGM=PAN#2
//STEPLIB DD DSN=PANVLT.R146.SP00.CBA3LINK,DISP=SHR
//SYSPRINT DD SYSOUT=*
//PANDD1 DD DSN=PANVLT.R146.PANLIB,DISP=SHR
//*SYSPUNCH DD SYSOUT=*
//SYSPUNCH DD DSN=PANVLT.SYSIN,DISP=(,CATLG,DELETE),
// UNIT=SYSDA,SPACE=(TRK,(1,1)),VOL=SER=WORK01,
// DCB=(RECFM=FB,LRECL=80,BLKSIZE=3120)
//SYSIN DD *
++USING PGP
+-TRANSFER
++PRINT 0-UP,DATEM=mmddyy,mmddyy
/*
//
This process uses the directory information from ++PRINT 0-UP to output a SYSIN card that extracts only the members that match the specified last update date.
(Creates a SYSIN card specified as +-XXXXXXXX in JCL)
Specify mmddyy to mmddyy in the DATEM= parameter. The default date, if you omit the second subparameter, is 123199.
If SYSOUT=* is specified for SYSPUNCH DD, the results will be output to a report, and if a dataset is specified, they will be output into that.
SAMPLE RESULTS
REPORT:
*** COMPANY NAME *** VERSION 05/27/25
PANVLT.R146.PANLIB 146SP00 18.01.18
FILE VERSIONS: PANDD1 => V14.5 PANDD2 => NOT-USED PANDD3 => NOT-
++TRANSFER UPDATE01
++TRANSFER ADD01
++TRANSFER UPDATE02
******************************** BOTTOM OF DATA ********************************
DATASET:
BROWSE PANVLT.SYSIN
Command ===>
********************************* Top of Data **********************************
++TRANSFER UPDATE01
++TRANSFER ADD01
++TRANSFER UPDATE02
******************************** Bottom of Data ********************************
Note:
In directory information, if the last update date and last access date are the same, the last update date will be blank.
For more information, see the Group Processor(PGP) and PAN#2 PRINT Command.