View previous topic :: View next topic
|
Author |
Message |
Usher Selig Tessler
New User
Joined: 08 Feb 2023 Posts: 3 Location: Israel
|
|
|
|
How can I look for a member in a PDS from an Assembler program without opening the file? In other words, is there an alternative to BLDL that will allow me to search for a PDS member WITHOUT having to open the PDS? |
|
Back to top |
|
|
vasanthz
Global Moderator
Joined: 28 Aug 2007 Posts: 1744 Location: Tirupur, India
|
|
|
|
I don't know any Assembler, but once I had a similar requirement and was able to get the information from "PDS directory" information.
ibmmainframes.com/about56107.html
You can read the PDS as RECFM=U and try to process the data. |
|
Back to top |
|
|
sergeyken
Senior Member
Joined: 29 Apr 2008 Posts: 2127 Location: USA
|
|
|
|
Usher Selig Tessler wrote: |
How can I look for a member in a PDS from an Assembler program without opening the file? |
What the "look for a member in a PDS" stands for:
- verify that the specific member does exist?
- get the list of existing members of the PDS?
- get the content of a specified member of the PDS?
- something else?
In any case, the PDS must be open somehow; maybe in a hidden manner, inside of some used tool/function/program (to say nothing about - it must be also CLOSEd at the end!).
Is your goal: just not to use the OPEN operation explicitly? |
|
Back to top |
|
|
Usher Selig Tessler
New User
Joined: 08 Feb 2023 Posts: 3 Location: Israel
|
|
|
|
Correct. I want to determine that the member exists in the PDS without OPENing the file. The reason I do not want to OPEN the file is because I don't want to update the date of last reference and I don't want to encounter RACF access issues. (I will not be reading the contents of the PDS member. I just want to know that the specific member exists in the PDS.) |
|
Back to top |
|
|
Joerg.Findeisen
Senior Member
Joined: 15 Aug 2015 Posts: 1329 Location: Bamberg, Germany
|
|
|
|
What if the DSN is of Type LIBRARY? |
|
Back to top |
|
|
sergeyken
Senior Member
Joined: 29 Apr 2008 Posts: 2127 Location: USA
|
|
Back to top |
|
|
Joerg.Findeisen
Senior Member
Joined: 15 Aug 2015 Posts: 1329 Location: Bamberg, Germany
|
|
|
|
DSC is a priced feature. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10884 Location: italy
|
|
|
|
we are just wasting time
to look at the content of a dataset the dataset must be opened.
anyway human resources and security auditing will enjoy telling the ts that he is being terminated for trying to circumvent the organisation security practices
|
|
Back to top |
|
|
sergeyken
Senior Member
Joined: 29 Apr 2008 Posts: 2127 Location: USA
|
|
|
|
sergeyken wrote: |
In any case, the PDS must be open somehow; maybe in a hidden manner, inside of some used tool/function/program (to say nothing about - it must be also CLOSEd at the end!). |
|
|
Back to top |
|
|
Monty Ealerman (1)
New User
Joined: 23 Feb 2023 Posts: 2 Location: United States
|
|
|
|
You can first do a LISTVTOC to get the CCHHR for the dataset (Format 1 DSCB). Then (this may require Operator authority or a Console Reply) you could use IEHDASDR, AMASPZAP (ABSDUMPT function with CCHHR keyword), or ADRDSSU to dump the directory track(s). The TTRs in the directory will point you to where each member is located. |
|
Back to top |
|
|
prino
Senior Member
Joined: 07 Feb 2009 Posts: 1313 Location: Vilnius, Lithuania
|
|
|
|
Usher Selig Tessler wrote: |
How can I look for a member in a PDS from an Assembler program without opening the file? In other words, is there an alternative to BLDL that will allow me to search for a PDS member WITHOUT having to open the PDS? |
Do you happen to work for NSO? |
|
Back to top |
|
|
|