View previous topic :: View next topic
|
Author |
Message |
sreekanth1984
New User
Joined: 23 Mar 2010 Posts: 22 Location: Bangalore
|
|
|
|
Hi, I have a requirement, where I need to find a load module present in all the pds's in the system. Is there a way to achieve this. I know the load module and need to list out all the PDS's the load resides.
Thanks
Srikanth |
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2455 Location: Hampshire, UK
|
|
|
|
If you have a library management/change control system then use its builtin enquiry software. If not then you need to collect a list of all load libraries, for every user, every application every etc. and start querying them. Do you need to query the system libraries? You were not exactly specific in your requirement.
You posted in the TSO/ISPF section so do you only want libraries attached to TSO? In which case, learn about ISRDDN. |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2546 Location: Silicon Valley
|
|
|
|
This is an unrealistic requirement.
Nonetheless, this is how I would approach it:
1. Use LISTCAT command to list all of the aliases defined on the system
2. For each alias, use LISTCAT command to get a list of data sets.
3. For each data set, issue LISTDSI function (with NORECALL) and examine the SYSDSORG and SYSRECFM variables.
4. when SYSDSORG=PO and SYSRECFM=U, issue the SYSDSN('some.pds(mymember)') function to determine if the member exists.
An alternative to #1 is to use RACF commands to list all of the userids and all of the group names and search those high level qualifiers.
That reminds me... you will probably run into various authority problems trying to examine all of those data sets. |
|
Back to top |
|
|
sreekanth1984
New User
Joined: 23 Mar 2010 Posts: 22 Location: Bangalore
|
|
|
|
Thank You Nic, Pedro. The information provided is really useful and I can reach a conclusion based on this information. |
|
Back to top |
|
|
Willy Jensen
Active Member
Joined: 01 Sep 2015 Posts: 712 Location: Denmark
|
|
|
|
I have written a utility to id every member name in a system, so it is possible.
One way to go about it:
Get the VTOC command from CBTTAPE.ORG, with that you can get a list of all PDS(E)s in the system.
Feed that list into a step which changes the list into a PDS86 ATTR name command (PDS86 is also found in CBTTAPE.ORG) and run PDS86.
Filter output from the PDS86 command.
Just be aware that it will take a loooong time to run. And as stated above you will most likely get a lot security messages. |
|
Back to top |
|
|
steve-myers
Active Member
Joined: 30 Nov 2013 Posts: 917 Location: The Universe
|
|
|
|
I can echo Mr. Jensen's comment on the time. Several years ago I wrote a utility to check on PDS directory sizes. I was curious about how large the directories were. The userid that ran the utility had RACF "operations" so permissions were not an issue, but it did run a long time. By the way, the answer was, on average, not very large at all.
Just one additional thought: in filtering the data sets you're going to examine, check for RECFM = U to just examine load module data sets. |
|
Back to top |
|
|
Rohit Umarjikar
Global Moderator
Joined: 21 Sep 2010 Posts: 3049 Location: NYC,USA
|
|
|
|
Quote: |
I have a requirement, where I need to find a load module present in all the pds's in the system. |
Why do you need to search the whole firms libs? Usually the modules are named based on the applications they fall under. But anyways why do you need that as you could give your load lib as the way you want in the job and if you talk about cics then look for the libs in DFHRPL step of the job or WLM in case of Stored Procedures to minimize the efforts. Because you may get thousands of dataset to search for so narrow down as much as you can.
We have MBRXREF (PDS Member Cross Reference for z/OS) of UFD AG and that is paid one and you want to make similar one for free but too many considerations you got to take into account.
Google 'PDS Member Cross Reference for z/OS' and see first few 3-4 links and look if they help. |
|
Back to top |
|
|
prino
Senior Member
Joined: 07 Feb 2009 Posts: 1306 Location: Vilnius, Lithuania
|
|
|
|
Quote: |
Hi, I have a requirement, where I need to find a load module present in all the pds's in the system. |
Which has given you this requirement? Or
{sarcasm}
do you just want to find a particular load module yourself, but don't want to tell us you're the one who came up with this "requirement"?
{/sarcasm}
BTW, if it's present in all the PDS'es in the system, you have already found it. |
|
Back to top |
|
|
RahulG31
Active User
Joined: 20 Dec 2014 Posts: 446 Location: USA
|
|
|
|
Quote: |
I need to find a load module present in all the pds's in the system |
Couldn't agree more with Prino
. |
|
Back to top |
|
|
|