Age of the PDS member

Time Sharing Option, Interactive System Productivity Facility and REstructured eXtended eXecutor

Moderator: mickeydusaor

Post Reply
Anithab
Registered Member
Posts: 44
Joined: Mon May 26, 2014 2:57 pm

Age of the PDS member

Post by Anithab »

Hi all,

I have a requirement to find the members present in PDS which are atleast 4 months old. Could someone give me some pointers on how to achieve this?
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1895
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

Re: Age of the PDS member

Post by Robert Sample »

Depending upon the PDS, it may not be possible -- period. If the PDS does not contain load modules, and the PDS does not have ISPF statistics set then there is NOTHING to tell you the age of the PDS member, hence it would not be possible to determine the age of any member. A load module has a date / time stamp in it but it can be a problem to get to it, especially if you want to use a program. If the PDS has ISPF statistics, you can read the PDS directory to retrieve those statistics and they contain the date the member was added as well as the last date it was changed.
Anithab
Registered Member
Posts: 44
Joined: Mon May 26, 2014 2:57 pm

Re: Age of the PDS member

Post by Anithab »

Hi Robert,
Thanks, Yes my PDS has ISPF statistics .

So I have 2 questions
1.How to print the stats to a dataset ?
2.How to find the difference between the date present under Modify date and current date in REXX?
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1895
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

Re: Age of the PDS member

Post by Robert Sample »

You can print the statistics via ISPF 3.4, or you can directly read the PDS directory to retrieve the statistics. How to do this in REXX, I do not know since I don't write a lot of REXX. I did write a COBOL program a while back to read ISPF statistics from a PDS.
enrico-sorichetti
Global Moderator
Global Moderator
Posts: 826
Joined: Wed Sep 11, 2013 3:57 pm

Re: Age of the PDS member

Post by enrico-sorichetti »

read the ispf manuals about the LM.... services
in this case the LMMSTATS will return the ISPF members stats
the DATE rexx function will help You to calculate the difference between the dates
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort 8-)
Anithab
Registered Member
Posts: 44
Joined: Mon May 26, 2014 2:57 pm

Re: Age of the PDS member

Post by Anithab »

Hi Enrico and Robert,
Thanks all

Yeah.. I made use of the LMMSTATS and then used the REXX date function to find difference in dates
Sunil Hyderbad
Registered Member
Posts: 22
Joined: Thu Jan 30, 2014 9:58 am

Re: Age of the PDS member

Post by Sunil Hyderbad »

Can you please post the code or algo which worked for you, it'll help me as I'm looking for a smilar solution.
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “TSO, ISPF & REXX (Do you still do CLIST?!).”