The step is based on the CHANGED parameter syntax I found in Tutorial of FILEAID.
Code:
-------------------------
| THE CHANGED PARAMETER |
| ALIAS CHA |
-------------------------
USE .....allows selection of members from input partitioned datasets based
on matching the date changed ISPF statistic in the PDS directory.
Code dates as YY/MM/DD (YY-year, MM-month, DD-day).
FORMAT - CHANGED=(from-date,to-date)
CHANGED=(,to-date)
CHA=from-date
EXAMPLE-1 - $$DD01 LIST CHANGED=(94/09/22,94/10/21)
1 - ...Will list the members from the DD01 PDS changed between Sept 22, 1994
and Oct. 21, 1994, inclusive.
PDS directory entries with non-standard ISPF format are never selected.
Dates may be abbreviated as follows: YY/MM/DD, YY/MM, or YY.
YY values less than 60 are considered 21st century (YY=59 is 2059).
Here's my SYSPRINT output:
Code:
DD01 DSN=MASTER.LIBRARY OPENED AS PO,
RECFM=FB,LRECL=80,BLKSIZE=27920,VOL=ADMINXX
$$DD01 LIST CHANGED=(14/12/18,14/12/19)
ABOVE FUNCTION ENDED ON PRINT DEFAULT RC=0
MEMBERS-READ=2,SELECTED=2,RECORDS-READ=250,PRINTED=250,ENDING ON PAGE 5
This is the library I'm checking, and it supposed to have more than to output.
Might be you need to include the DD01SC DD with some parms.
//* THE BELOW STATEMENTS ARE REQUIRED IN THE DD01SC DD SO THAT ALL
//* RECORDS ARE SELECTED AS THE BATCH DEFAULT DOESN'T READ ALL RECORDS.
//* IT HAS TO BE IN A RECFM=VB,LRECL=300 FILE.
//*
//* DEFINE BLOCKS=SELECTION,
//*
//* INITIAL_SKIP=0,
//* THEN_SELECT=0,
//* THEN_SKIP=0,
//*
//* MAXIMUM_TO_SEARCH=ALL,
//* MAXIMUM_TO_SELECT=ALL
//*
//* THIS CREATES A FLAT-FILE LIST OF ALL CONTENTS OF PDS MEMBERS
//*
//* TO SELECT BY MEMBER NAME MASK SPECIFY:
//*
//* ££DD01 LIST MEMBERS=FILT*
//*
//*
Nice Pete, it's now working. But when I tried the filtering to list only the members ST*. It still gave all just like without the LIST MEMBER parameter.