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 the PDS name

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


Joined: 04 Dec 2002
Posts: 64
Topics: 21

PostPosted: Mon Oct 05, 2009 10:29 am    Post subject: Finding the PDS name Reply with quote

When you are in Edit/Browse/View mode of a PDS, ISPF displays a list of members of the PDS. If I issue a Rexx command on the command line during such a display of members, can I get the PDS name in the Rexx.
Thanks
Back to top
View user's profile Send private message Send e-mail
kolusu
Site Admin
Site Admin


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

PostPosted: Mon Oct 05, 2009 10:34 am    Post subject: Reply with quote

moyeenkhan,

try these links

http://www.mvsforums.com/helpboards/viewtopic.php?t=2145&highlight=pds

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

Kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
moyeenkhan
Beginner


Joined: 04 Dec 2002
Posts: 64
Topics: 21

PostPosted: Mon Oct 05, 2009 11:18 am    Post subject: Reply with quote

I think I was not clear in my requirements. Issue 3.4 and we get a list of datasets. I type 'M' against a library. I am in member list. On the command line I want to execute a Rexx program that searches this list (just like SRCHFOR command). I need to get the library name. How can I get it?

Thanks Kolusu
Back to top
View user's profile Send private message Send e-mail
Anuj Dhawan
Intermediate


Joined: 19 Jul 2007
Posts: 298
Topics: 7
Location: Mumbai,India

PostPosted: Mon Oct 05, 2009 1:11 pm    Post subject: Reply with quote

moyeenkhan wrote:
I need to get the library name. How can I get it?
This is confusing, you'd get a member name...what does library name signify here?
_________________
Regards,
Anuj
Back to top
View user's profile Send private message
Terry_Heinze
Supermod


Joined: 31 May 2004
Posts: 391
Topics: 4
Location: Richfield, MN, USA

PostPosted: Mon Oct 05, 2009 6:57 pm    Post subject: Reply with quote

I'm also confused; the name of the library of the member list you're looking at is at the top of the panel, isn't it? Question
_________________
....Terry
Back to top
View user's profile Send private message Send e-mail
Bill Dennis
Advanced


Joined: 03 Dec 2002
Posts: 579
Topics: 1
Location: Iowa, USA

PostPosted: Mon Oct 05, 2009 9:52 pm    Post subject: Reply with quote

You want to pick up the current PDS name within the REXX you call from the command line?
_________________
Regards,
Bill Dennis

Disclaimer: My comments on this foorum are my own and do not represent the opinions or suggestions of any other person or business entity.
Back to top
View user's profile Send private message
moyeenkhan
Beginner


Joined: 04 Dec 2002
Posts: 64
Topics: 21

PostPosted: Tue Oct 06, 2009 8:03 am    Post subject: Reply with quote

Dennis:
Yes. That is what I need.
Back to top
View user's profile Send private message Send e-mail
semigeezer
Supermod


Joined: 03 Jan 2003
Posts: 1014
Topics: 13
Location: Atlantis

PostPosted: Tue Oct 06, 2009 10:27 am    Post subject: Reply with quote

see ZSCREENI variable
_________________
New members are encouraged to read the How To Ask Questions The Smart Way FAQ at http://www.catb.org/~esr/faqs/smart-questions.html.
Back to top
View user's profile Send private message Visit poster's website
moyeenkhan
Beginner


Joined: 04 Dec 2002
Posts: 64
Topics: 21

PostPosted: Tue Oct 06, 2009 12:20 pm    Post subject: Reply with quote

Many thanks. This is what I was looking for.
Back to top
View user's profile Send private message Send e-mail
Anuj Dhawan
Intermediate


Joined: 19 Jul 2007
Posts: 298
Topics: 7
Location: Mumbai,India

PostPosted: Wed Oct 07, 2009 1:28 am    Post subject: Reply with quote

Glad to hear you got it working. I believe it would be beneficial for others if you post the skeleton of the code you used (if it does not get too much site specific).
_________________
Regards,
Anuj


Last edited by Anuj Dhawan on Mon Oct 12, 2009 4:53 am; edited 1 time in total
Back to top
View user's profile Send private message
stefan
Beginner


Joined: 20 Nov 2003
Posts: 41
Topics: 2
Location: Germany

PostPosted: Fri Oct 09, 2009 2:51 am    Post subject: Reply with quote

Code:
'ispexec vget zscreeni'
say word(zscreeni,wordpos('DSLIST',zscreeni)+1)

_________________
Stefan
There are 10 types of people in the world: Those who understand binary, and those who don't.
Back to top
View user's profile Send private message
semigeezer
Supermod


Joined: 03 Jan 2003
Posts: 1014
Topics: 13
Location: Atlantis

PostPosted: Sun Oct 11, 2009 11:21 pm    Post subject: Reply with quote

You might want to do this a little differently because if the user has PANELID, SYSNAME, or a few other things turned on, I think the word DSLIST won't be there.
_________________
New members are encouraged to read the How To Ask Questions The Smart Way FAQ at http://www.catb.org/~esr/faqs/smart-questions.html.
Back to top
View user's profile Send private message Visit poster's website
stefan
Beginner


Joined: 20 Nov 2003
Posts: 41
Topics: 2
Location: Germany

PostPosted: Mon Oct 19, 2009 5:13 am    Post subject: Reply with quote

semigeezer wrote:
You might want to do this a little differently because if the user has PANELID, SYSNAME, or a few other things turned on, I think the word DSLIST won't be there.

As far as I can see, PANELID or SYSNAME overlay the visible screen but DO NOT change the contents of variable zscreeni. So this variable still contains the string "DSLIST" followed by the dataset name.
_________________
Stefan
There are 10 types of people in the world: Those who understand binary, and those who don't.
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