Page 1 of 1
RC(-3) Error
Posted:
Wed Dec 21, 2016 5:05 pm
by SKANDA
hi all,
while executing Rexx code in Batch mode it throws the following error.
can anyone help me to fix it?
thanks all,
Skanda
Re: RC(-3) Error
Posted:
Wed Dec 21, 2016 6:16 pm
by Robert Sample
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.
Re: RC(-3) Error
Posted:
Wed Dec 21, 2016 7:10 pm
by Akatsukami
A return code of -3 is diagnostic of "environment not found". Are you executing your script via IRXJCL rather than background TSO?
Re: RC(-3) Error
Posted:
Thu Dec 22, 2016 1:05 pm
by SKANDA
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
Re: RC(-3) Error
Posted:
Thu Dec 22, 2016 3:55 pm
by NicC
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.
Re: RC(-3) Error
Posted:
Thu Dec 22, 2016 8:55 pm
by SKANDA
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
Re: RC(-3) Error
Posted:
Thu Dec 22, 2016 9:11 pm
by Akatsukami
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
- Run background TSO (PGM=IKJEFTxx) rather than IRXJCL
- Remove the TSO ALLOCATE and FREE commands and allocate the data sets through DD statements in the JCL
Re: RC(-3) Error
Posted:
Fri Dec 23, 2016 3:49 pm
by SKANDA
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
Re: RC(-3) Error
Posted:
Fri Dec 23, 2016 4:11 pm
by NicC
Do not mix up topics. This one locked.