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 

Reg: Reading a PDS Member thru' REXX

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


Joined: 17 Aug 2003
Posts: 51
Topics: 26
Location: Chennai

PostPosted: Fri Jan 30, 2004 7:06 am    Post subject: Reg: Reading a PDS Member thru' REXX Reply with quote

Hi,

When I was trying to Read a PDS member and put into stem variable, my "ALLOC DA('DSNM') F(INDD) SHR" abruptly fails with an RC of 28. I have my DSNM dataset cataloged. I am just giving the code which i used here. Please let me know what might be the problem.

IF SYSDSN(DSNM) = 'OK' THEN DO
"ALLOC DA("DSNM") F(INDD) SHR"
SAY "AFTER ALLOC STATEMENT: " RC /* Returns 28 after execution */
END

Thanks & Regards,
Ravishankar
Back to top
View user's profile Send private message
superk
Advanced


Joined: 19 Dec 2002
Posts: 684
Topics: 5

PostPosted: Fri Jan 30, 2004 8:12 am    Post subject: Reply with quote

I, for one, couldn't duplicate the error.

The exec code worked just fine, whether I allocated DSNM to a PDS, or to a PDS(MEMBER).

The only problem I saw was that, if DSNM was allocated to the entire PDS, without the addition of a "FREE" statement at the end, a subsequent run produced a RC=12 'DATASET IS IN USE'.
Back to top
View user's profile Send private message
karavi2000
Beginner


Joined: 17 Aug 2003
Posts: 51
Topics: 26
Location: Chennai

PostPosted: Fri Jan 30, 2004 9:06 am    Post subject: Reply with quote

Hey,
The problem is since I was writing it as a macro, I didnt give "ADDRESS TSO" at the start. When I gave it just before the ALLOC statement, my code worked fine.

Hey Superk. Thanks for your response. Continue your good work.

Thanks & Regards,
Ravishankar
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