RC(-3) Error



IBM's Command List programming language & Restructured Extended Executor

RC(-3) Error

Postby SKANDA » Wed Dec 21, 2016 5:05 pm

hi all,
while executing Rexx code in Batch mode it throws the following error.
can anyone help me to fix it?

thanks all,
Skanda
You do not have the required permissions to view the files attached to this post.
SKANDA
 
Posts: 30
Joined: Thu Aug 04, 2016 7:50 pm
Has thanked: 17 times
Been thanked: 0 time

Re: RC(-3) Error

 

Re: RC(-3) Error

Postby Robert Sample » Wed Dec 21, 2016 6:16 pm

Terminology is critical in IT, where similar terms may mean very different things. And NOTHING on a mainframe "throws" errors -- ever. Mainframe programs issue bad return codes or have ABENDS but they don't throw things.

Did you use ADDRESS TSO before issuing the FREE commands? FREE is a TSO command, after all.
Robert Sample
Global moderator
 
Posts: 3624
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 267 times

Re: RC(-3) Error

Postby Akatsukami » Wed Dec 21, 2016 7:10 pm

A return code of -3 is diagnostic of "environment not found". Are you executing your script via IRXJCL rather than background TSO?
"You have sat too long for any good you have been doing lately ... Depart, I say; and let us have done with you. In the name of God, go!" -- what I say to a junior programmer at least once a day
User avatar
Akatsukami
Global moderator
 
Posts: 1058
Joined: Sat Oct 16, 2010 2:31 am
Location: Bloomington, IL
Has thanked: 6 times
Been thanked: 51 times

Re: RC(-3) Error

Postby SKANDA » Thu Dec 22, 2016 1:05 pm

Hi Robert sample/ Akatsukam,

Thank for spending your time to clarify my doubt.
I have attached my jcl. kindly let me know if any corrections required.

Thanks all,
Skanda
You do not have the required permissions to view the files attached to this post.
SKANDA
 
Posts: 30
Joined: Thu Aug 04, 2016 7:50 pm
Has thanked: 17 times
Been thanked: 0 time

Re: RC(-3) Error

Postby NicC » Thu Dec 22, 2016 3:55 pm

Do NOT use attachments - many people do not download them for fear of viruses or simply because company policy does not allow it. A simple cut and paste, using the code tags, is more than sufficient, is quicker and takes less storage.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 2941
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 134 times

Re: RC(-3) Error

Postby SKANDA » Thu Dec 22, 2016 8:55 pm

hi ,
Apologize for the inconvenience.

STEP2 EXEC PGM=IRXJCL,PARM='MAIN'
//SYSEXEC DD DSN=III.RRR.TTT,DISP=SHR
//SYSTSPRT DD SYSOUT=*
//SYSTSIN DD DUMMY
//OUTDD1    DD DSN=xxx.rrr.nnn,DISP=MOD
//OUTDD2    DD DSN=yyy.rrr.jjj.EFFORT.EFFORT,DISP=MOD
//OUTDD3    DD DSN=xxx.rrr.ddd.EFFORT,DISP=MOD

//*GIVE THE PDS TO BE TESTED HERE IN FILEI
//FILEI    DD DSN=DDD.REXX.TEST.PGM, DISP=SHR
//*INDD IS THE CONFIGURATION FILE
//INDD     DD DSN=GGG.REXX.CONFIG.FILE, DISP=SHR
//*

please help me to modify the above code if it requires..

thanks all,
Skanda
SKANDA
 
Posts: 30
Joined: Thu Aug 04, 2016 7:50 pm
Has thanked: 17 times
Been thanked: 0 time

Re: RC(-3) Error

Postby Akatsukami » Thu Dec 22, 2016 9:11 pm

As I indicated in my previous post, you are running your script via IRXJCL rather than through background TSO. This means that no TSO commands or TSO Rexx functions may be used. An attempt to do so results in the return code of -3, which is diagnostic of an environment (TSO, in this case) not being found.

You have two possible changes
  1. Run background TSO (PGM=IKJEFTxx) rather than IRXJCL
  2. Remove the TSO ALLOCATE and FREE commands and allocate the data sets through DD statements in the JCL
"You have sat too long for any good you have been doing lately ... Depart, I say; and let us have done with you. In the name of God, go!" -- what I say to a junior programmer at least once a day

These users thanked the author Akatsukami for the post:
SKANDA (Fri Dec 23, 2016 3:49 pm)
User avatar
Akatsukami
Global moderator
 
Posts: 1058
Joined: Sat Oct 16, 2010 2:31 am
Location: Bloomington, IL
Has thanked: 6 times
Been thanked: 51 times

Re: RC(-3) Error

Postby SKANDA » Fri Dec 23, 2016 3:49 pm

hi,
thank you Akatsukam for your timely help.
And also I have another doubt in
FILEI    DD DSN=DDD.REXX.TEST.PGM, DISP=SHR
 

in above DSN parameter is to possible to pass member name from my rexx code while execution?

Thanks in advance..
Thanks all,
Skanda
SKANDA
 
Posts: 30
Joined: Thu Aug 04, 2016 7:50 pm
Has thanked: 17 times
Been thanked: 0 time

Re: RC(-3) Error

Postby NicC » Fri Dec 23, 2016 4:11 pm

Do not mix up topics. This one locked.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 2941
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 134 times


Return to CLIST & REXX

 


  • Related topics
    Replies
    Views
    Last post