IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Looking For a PDS Member Without Opening the PDS


IBM Mainframe Forums -> PL/I & Assembler
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Usher Selig Tessler

New User


Joined: 08 Feb 2023
Posts: 3
Location: Israel

PostPosted: Wed Feb 08, 2023 4:53 pm
Reply with quote

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
View user's profile Send private message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1744
Location: Tirupur, India

PostPosted: Wed Feb 08, 2023 7:47 pm
Reply with quote

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
View user's profile Send private message
sergeyken

Senior Member


Joined: 29 Apr 2008
Posts: 2141
Location: USA

PostPosted: Wed Feb 08, 2023 8:20 pm
Reply with quote

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
View user's profile Send private message
Usher Selig Tessler

New User


Joined: 08 Feb 2023
Posts: 3
Location: Israel

PostPosted: Thu Feb 09, 2023 11:22 am
Reply with quote

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
View user's profile Send private message
Joerg.Findeisen

Senior Member


Joined: 15 Aug 2015
Posts: 1335
Location: Bamberg, Germany

PostPosted: Thu Feb 09, 2023 3:55 pm
Reply with quote

What if the DSN is of Type LIBRARY?
Back to top
View user's profile Send private message
sergeyken

Senior Member


Joined: 29 Apr 2008
Posts: 2141
Location: USA

PostPosted: Thu Feb 09, 2023 5:56 pm
Reply with quote

Try using this -
Calling DSLIST (ISPF Option 3.4) from an application
Back to top
View user's profile Send private message
Joerg.Findeisen

Senior Member


Joined: 15 Aug 2015
Posts: 1335
Location: Bamberg, Germany

PostPosted: Thu Feb 09, 2023 6:23 pm
Reply with quote

DSC is a priced feature.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10888
Location: italy

PostPosted: Thu Feb 09, 2023 7:22 pm
Reply with quote

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
icon_cool.gif
Back to top
View user's profile Send private message
sergeyken

Senior Member


Joined: 29 Apr 2008
Posts: 2141
Location: USA

PostPosted: Thu Feb 09, 2023 7:44 pm
Reply with quote

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
View user's profile Send private message
Monty Ealerman (1)

New User


Joined: 23 Feb 2023
Posts: 2
Location: United States

PostPosted: Thu Feb 23, 2023 2:53 am
Reply with quote

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
View user's profile Send private message
prino

Senior Member


Joined: 07 Feb 2009
Posts: 1315
Location: Vilnius, Lithuania

PostPosted: Thu Feb 23, 2023 4:05 am
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> PL/I & Assembler

 


Similar Topics
Topic Forum Replies
No new posts DB2 for z/OS and LUW Admin Job Opening Mainframe Jobs 0
No new posts How to copy the -1 version of a membe... TSO/ISPF 4
No new posts Searching for a member but don't know... TSO/ISPF 6
No new posts Vision PLUS Mainframe opening Mainframe Jobs 0
No new posts Urgent MF opening for TCS India Mainframe Jobs 0
Search our Forums:

Back to Top