how to access a Partitioned data set in Rexx?



IBM's Command List programming language & Restructured Extended Executor

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

Postby William Thompson » Fri Aug 03, 2007 10:11 pm

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......
William Thompson
 
Posts: 81
Joined: Sat Jun 09, 2007 4:24 am
Location: Tucson AZ
Has thanked: 0 time
Been thanked: 1 time

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

Postby MrSpock » Sat Aug 04, 2007 12:19 am

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.
User avatar
MrSpock
Global moderator
 
Posts: 807
Joined: Wed Jun 06, 2007 9:37 pm
Location: Raleigh NC USA
Has thanked: 0 time
Been thanked: 4 times

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

Postby William Thompson » Sat Aug 04, 2007 1:58 am

Take it easy Doc...... ;)
Don't forget what is under the masthead:
"A Help & Support Forum for Mainframe Beginners and Students"......
William Thompson
 
Posts: 81
Joined: Sat Jun 09, 2007 4:24 am
Location: Tucson AZ
Has thanked: 0 time
Been thanked: 1 time

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

Postby marso » Sun Aug 05, 2007 8:23 pm

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.
User avatar
marso
 
Posts: 12
Joined: Mon Jul 30, 2007 5:04 pm
Has thanked: 0 time
Been thanked: 0 time

Previous

Return to CLIST & REXX

 


  • Related topics
    Replies
    Views
    Last post