Page 2 of 2

Re: how to access a Partitioned data set in Rexx?

PostPosted: Fri Aug 03, 2007 10:11 pm
by William Thompson
MrSpock wrote:Has this topic been abandoned?
Sorta, he kinda moved to the "logic behind the ispf menu option (3.14) search" thread.......
Rather than just coming out and stating what he want to do or needs (if he even knows), he seems to be asking little questions and when he is not too satisfied with the answers, he tries again......

Re: how to access a Partitioned data set in Rexx?

PostPosted: Sat Aug 04, 2007 12:19 am
by MrSpock
I get this at work too. Someone will IM me with a supposed REXX question, and then proceed to ask me a question about an ISPF skeleton (a topic I'm not really up-to-speed on) or something to do with an ISPF panel. You can't put the cart before the horse. I don't care how fast these people want to learn things, there needs to be a realistic order of how technologies are learned. I'm all for anyone who wants to learn CLIST or REXX. However, I don't understand why you'd want to learn either language unless you already posess a good knowledge of the environments that they work within - TSO, ISPF, MVS, USS, and others. If the person who posted this topic really understood REXX, then they'd probably already have a good idea of how to find the answer. This is not a beginner's type of project.

Re: how to access a Partitioned data set in Rexx?

PostPosted: Sat Aug 04, 2007 1:58 am
by William Thompson
Take it easy Doc...... ;)
Don't forget what is under the masthead:
"A Help & Support Forum for Mainframe Beginners and Students"......

Re: how to access a Partitioned data set in Rexx?

PostPosted: Sun Aug 05, 2007 8:23 pm
by marso
First you have to get a list of members, given the dataset:
DSName = 'prefix.dataset.name'
Call OUTTRAP('Lst.')
Address TSO "LISTDS '"DSName"' MEMBERS"
Call OUTTRAP('OFF')

This will populate the Lst. stem variable. Just to make sure, add:
Do IX = 1 To Lst.0
   Say Lst.IX
End

Once you've seen what you receive, it's easier to continue: you may want to bypass the first lines which contain general information, etc.