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 

RC(-3) in 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
computer
Beginner


Joined: 12 Jun 2007
Posts: 64
Topics: 17
Location: Hyderabad

PostPosted: Fri Apr 03, 2009 5:36 am    Post subject: RC(-3) in REXX Reply with quote

Hi,

I am writing a REXX which will access a VSAM file in my program as shown below....
Code:

NEWVAR. = ' '                                                         
ADDRESS JCL                                                           
"// DLBL  TEST4,'USER.CAT.TEST4',,VSAM"                               
"// DLBL VSMFI1,'VSV430.TEST.AG.PRIM.CFCO',,VSAM,CAT=TEST4"           
"// DLBL VSMFI2,'VSV430.TEST.AGMTLY.REP7450.ASFILE',,VSAM,CAT=TEST4"   
"/*"                                                                   
"VSAMIO READ FILENAME VSMFI1 RECORDS * OPEN_READ CLOSE STEM NEWVAR."   
SAY 'NEWVAR.0:' NEWVAR.0                                               

exit 0   

But I am getting the below error,
Code:

    15 *-* "VSAMIO READ FILENAME VSMFI1 RECORDS * OPEN_READ CLOSE STEM NEWVAR."
       +++ RC(-3) +++                                                           
NEWVAR.0:                                                                       


Please help me out from sorting out this error.

Thanks in Advance,
Manoj
Back to top
View user's profile Send private message
superk
Advanced


Joined: 19 Dec 2002
Posts: 684
Topics: 5

PostPosted: Fri Apr 03, 2009 6:38 am    Post subject: Reply with quote

I take it that that code is VSE REXX?
Back to top
View user's profile Send private message
computer
Beginner


Joined: 12 Jun 2007
Posts: 64
Topics: 17
Location: Hyderabad

PostPosted: Fri Apr 03, 2009 7:52 am    Post subject: Reply with quote

Yes its a VSE REXX......
Back to top
View user's profile Send private message
danm
Intermediate


Joined: 29 Jun 2004
Posts: 170
Topics: 73

PostPosted: Tue Apr 07, 2009 9:22 am    Post subject: Reply with quote

-3 means unknown command. It complains that VSAMIO is not an JCL command (you have address JCL).
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