Age of the PDS member
Moderator: mickeydusaor
Age of the PDS member
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?
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?
- Robert Sample
- Global Moderator
- Posts: 1896
- Joined: Fri Jun 28, 2013 1:22 am
- Location: Dubuque Iowa
Re: Age of the PDS member
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.
Re: Age of the PDS member
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?
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?
- Robert Sample
- Global Moderator
- Posts: 1896
- Joined: Fri Jun 28, 2013 1:22 am
- Location: Dubuque Iowa
Re: Age of the PDS member
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.
-
- Global Moderator
- Posts: 829
- Joined: Wed Sep 11, 2013 3:57 pm
Re: Age of the PDS member
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
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
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
Re: Age of the PDS member
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
Thanks all
Yeah.. I made use of the LMMSTATS and then used the REXX date function to find difference in dates
-
- Registered Member
- Posts: 22
- Joined: Thu Jan 30, 2014 9:58 am
Re: Age of the PDS member
Can you please post the code or algo which worked for you, it'll help me as I'm looking for a smilar solution.
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