Is there a way to search for modules that have been updated on or after a specific date?

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

Description:

The CA Librarian Group Processing Option (GPO) can be used to select a group of members for processing based on specified selection criteria such as if members have been added, accessed or updated on or after a specified date, if they were added, accessed or updated on or before a specified date, or a combination of before and after selection criterion.

Solution:

Using the GPO member selection keywords UPDA=mmddyy and UPDB=mmddyy will select all members added or updated on or after (UPDA) and on or before (UPDB) the specified date.

The example below lists all modules added or updated between the date range of January 1, 2012 and December 31, 2013:


//STEP1        EXEC   PGM=AFOLIBR
//MASTER       DD     DSN=YOUR.LIBRARIAN.MASTFILE,DISP=SHR
//OSJOB        DD     DUMMY
//LIST         DD     SYSOUT=*
//SYSPRINT     DD     SYSOUT=*
//SYSIN        DD     *
-OPT GPO
-OPT UTILITY
-SEL NAME=,UPDA=010112,UPDB=123113,LIST
//

To list the members that were added but have never been updated, specify the keyword NOUPD=0 as additional selection criterion:


//STEP1        EXEC   PGM=AFOLIBR
//MASTER       DD     DSN=YOUR.LIBRARIAN.MASTFILE,DISP=SHR
//OSJOB        DD     DUMMY
//LIST         DD     SYSOUT=*
//SYSPRINT     DD     SYSOUT=*
//SYSIN        DD     *
-OPT GPO
-OPT UTILITY
-SEL NAME=,UPDA=010112,UPDB=123113,NOUPD=0
//

To exclude members from the list that were added but never been updated, specify the keyword NOUPD=+0 as additional selection criterion:


//STEP1        EXEC   PGM=AFOLIBR
//MASTER       DD     DSN=YOUR.LIBRARIAN.MASTFILE,DISP=SHR
//OSJOB        DD     DUMMY
//LIST         DD     SYSOUT=*
//SYSPRINT     DD     SYSOUT=*
//SYSIN        DD     *
-OPT GPO
-OPT UTILITY
-SEL NAME=,UPDA=010112,UPDB=123113,NOUPD=+0
//

Please see the CA Librarian System Services Reference Guide, GPO Control Statement Syntax for more information on additional keywords for specifying member selection criterion.