View previous topic :: View next topic |
Author |
Message |
Senthil Prabhu Beginner
Joined: 09 Aug 2006 Posts: 4 Topics: 4 Location: India
|
Posted: Tue Apr 03, 2007 4:57 am Post subject: Finding Current DSN |
|
|
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 |
|
|
expat Intermediate
Joined: 01 Mar 2007 Posts: 475 Topics: 9 Location: Welsh Wales
|
Posted: Tue Apr 03, 2007 5:30 am Post subject: |
|
|
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 |
|
|
expat Intermediate
Joined: 01 Mar 2007 Posts: 475 Topics: 9 Location: Welsh Wales
|
Posted: Tue Apr 03, 2007 5:37 am Post subject: |
|
|
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 |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
|
|
Back to top |
|
|
nevilh Beginner
Joined: 11 Aug 2004 Posts: 115 Topics: 0
|
Posted: Mon Apr 16, 2007 7:35 am Post subject: |
|
|
try "parse . . . . invdsn ."
dsname should be returned in variable invdsn |
|
Back to top |
|
|
Nic Clouston Advanced
Joined: 01 Feb 2007 Posts: 1075 Topics: 7 Location: At Home
|
Posted: Mon Apr 16, 2007 7:55 am Post subject: |
|
|
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 |
|
|
nevilh Beginner
Joined: 11 Aug 2004 Posts: 115 Topics: 0
|
Posted: Mon Apr 16, 2007 9:11 am Post subject: |
|
|
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 |
|
|
nevilh Beginner
Joined: 11 Aug 2004 Posts: 115 Topics: 0
|
Posted: Mon Apr 16, 2007 9:24 am Post subject: |
|
|
Doesn't work in batch returns ??? instead of dsname |
|
Back to top |
|
|
Nic Clouston Advanced
Joined: 01 Feb 2007 Posts: 1075 Topics: 7 Location: At Home
|
Posted: Mon Apr 16, 2007 9:49 am Post subject: |
|
|
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 |
|
|
shreevamsi Beginner
Joined: 08 May 2006 Posts: 3 Topics: 1
|
Posted: Mon Apr 16, 2007 6:00 pm Post subject: |
|
|
Hi TSO ISRDDN.
This Service lists all the PDS that are supporting your current TSO SESSION.
~Vamsi |
|
Back to top |
|
|
Nic Clouston Advanced
Joined: 01 Feb 2007 Posts: 1075 Topics: 7 Location: At Home
|
Posted: Tue Apr 17, 2007 3:25 am Post subject: |
|
|
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 |
|
|
expat Intermediate
Joined: 01 Mar 2007 Posts: 475 Topics: 9 Location: Welsh Wales
|
Posted: Tue Apr 17, 2007 3:43 am Post subject: |
|
|
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 |
|
|
|
|