MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Finding Current DSN

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF
View previous topic :: View next topic  
Author Message
Senthil Prabhu
Beginner


Joined: 09 Aug 2006
Posts: 4
Topics: 4
Location: India

PostPosted: Tue Apr 03, 2007 4:57 am    Post subject: Finding Current DSN Reply with quote

Hi all,

Please let me know the command/Function to get the current PDS name in which the executing rexx routine is stored.

Example: F5748TGH.CESOD.CHECKSTD.TOOL (COBSTDTL) is PDS with the member mentioned in parentheses. While executing the COBSTDTL (REXX routine) the DSN name F5748TGH.CESOD.CHECKSTD.TOOL is needed in the REXX Routine COBSTDTL.

Please let me know the command/function to acheive the above.

Thanks,
P.Senthil Prabhu.
_________________
Senthil Prabhu
Back to top
View user's profile Send private message Yahoo Messenger
expat
Intermediate


Joined: 01 Mar 2007
Posts: 475
Topics: 9
Location: Welsh Wales

PostPosted: Tue Apr 03, 2007 5:30 am    Post subject: Reply with quote

You will need to chase the z/OS control blocks to get the dataset name, and even then it may not give you what you want as the SYSEXEC DD is likeley to contain a concatenation of libraries.
_________________
If it's true that we are here to help others,
then what exactly are the others here for ?
Back to top
View user's profile Send private message
expat
Intermediate


Joined: 01 Mar 2007
Posts: 475
Topics: 9
Location: Welsh Wales

PostPosted: Tue Apr 03, 2007 5:37 am    Post subject: Reply with quote

Are you running in batch or online ?
And why do you need to know the dataset name where the member resides ?
_________________
If it's true that we are here to help others,
then what exactly are the others here for ?
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12375
Topics: 75
Location: San Jose

PostPosted: Tue Apr 03, 2007 5:57 am    Post subject: Reply with quote

Senthil Prabhu,

Please search before posting. This has been answered before. Check this link (2nd post from bottom)

http://www.mvsforums.com/helpboards/viewtopic.php?t=1225&highlight=member+rexx

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
nevilh
Beginner


Joined: 11 Aug 2004
Posts: 115
Topics: 0

PostPosted: Mon Apr 16, 2007 7:35 am    Post subject: Reply with quote

try "parse . . . . invdsn ."
dsname should be returned in variable invdsn
Back to top
View user's profile Send private message
Nic Clouston
Advanced


Joined: 01 Feb 2007
Posts: 1075
Topics: 7
Location: At Home

PostPosted: Mon Apr 16, 2007 7:55 am    Post subject: Reply with quote

Parsing SOURCE only gives the member name - not the name of the PDS that the member is in. But, if you not executing a member it does give the PS file name.
_________________
Utility and Program control cards are NOT, repeat NOT, JCL.
Back to top
View user's profile Send private message
nevilh
Beginner


Joined: 11 Aug 2004
Posts: 115
Topics: 0

PostPosted: Mon Apr 16, 2007 9:11 am    Post subject: Reply with quote

sorry you are right I forgot the keyword source should have been
"parse source . . . . invdsn ."
However tried it here on various flavours of z/OS and it returns the dsname for a PDS
Back to top
View user's profile Send private message
nevilh
Beginner


Joined: 11 Aug 2004
Posts: 115
Topics: 0

PostPosted: Mon Apr 16, 2007 9:24 am    Post subject: Reply with quote

Doesn't work in batch returns ??? instead of dsname
Back to top
View user's profile Send private message
Nic Clouston
Advanced


Joined: 01 Feb 2007
Posts: 1075
Topics: 7
Location: At Home

PostPosted: Mon Apr 16, 2007 9:49 am    Post subject: Reply with quote

I tried in TSO and batch - both times just got member name. When I converted to a PS file I got the file name. Maybe it is an installation setting that decides how much info you get and when? We are z/OS something or other.
_________________
Utility and Program control cards are NOT, repeat NOT, JCL.
Back to top
View user's profile Send private message
shreevamsi
Beginner


Joined: 08 May 2006
Posts: 3
Topics: 1

PostPosted: Mon Apr 16, 2007 6:00 pm    Post subject: Reply with quote

Hi TSO ISRDDN.

This Service lists all the PDS that are supporting your current TSO SESSION.

~Vamsi
Back to top
View user's profile Send private message
Nic Clouston
Advanced


Joined: 01 Feb 2007
Posts: 1075
Topics: 7
Location: At Home

PostPosted: Tue Apr 17, 2007 3:25 am    Post subject: Reply with quote

shreevamsi wrote:
Hi TSO ISRDDN.

This Service lists all the PDS that are supporting your current TSO SESSION.

~Vamsi


Which is nothing to do with the OP's question and would not help if you were not executing in a TSO environment.
_________________
Utility and Program control cards are NOT, repeat NOT, JCL.
Back to top
View user's profile Send private message
expat
Intermediate


Joined: 01 Mar 2007
Posts: 475
Topics: 9
Location: Welsh Wales

PostPosted: Tue Apr 17, 2007 3:43 am    Post subject: Reply with quote

I was going to ask what was wrong with the solutions given by the link provided by kolusu. The ISREDIT bits have always worked well for me in the past.

It seems that the OP hasn't responded since then, so I guess they must have found the solution.
_________________
If it's true that we are here to help others,
then what exactly are the others here for ?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group