Page 1 of 1

Return Code of -3

PostPosted: Wed Feb 20, 2013 11:40 pm
by nikesh_rai
Hi,

I have to submit a REXX through JCL. I have tried it through a simple REXX but getting RC -3 in Sysout. Can you please help me.. this is the first time I am executing a REXX through JCL.. here is my JCL

//STEP001  EXEC PGM=IRXJCL,PARM='TSTREXX'           
//SYSEXEC  DD DISP=SHR,DSN=DPFCB.D393990.ISPCLIB   
//OUTDD    DD SYSOUT=*                             
//SYSTSPRT DD SYSOUT=*                             
//SYSPRINT DD SYSOUT=*                             
//SYSOUT   DD SYSOUT=*                             
//SYSTSIN  DD DUMMY,BLKSIZE=80                     
//SYSIN    DD DUMMY                                 
//                                                 


Here is the REXX
/*------------------ Tyrannosaurus REXX ------------------------------*/
    Address ISPEXEC                                                     
                                                                       
    "Control errors return"                                             
                                                                       
    "DISPLAY PANEL(PAN11) "                                             
                                                                       


and the sysout is

     4 *-* "Control errors return"     
       +++ RC(-3) +++                 
     6 *-* "DISPLAY PANEL(PAN11) "     
       +++ RC(-3) +++                 


Can you please help me out to resolve this one.. :)

Re: Return Code of -3

PostPosted: Wed Feb 20, 2013 11:57 pm
by prino
You're trying to use ISPF functions outside of ISPF, all ISPF libraries are missing in your JCL.

Re: Return Code of -3

PostPosted: Wed Feb 20, 2013 11:58 pm
by enrico-sorichetti
and ... using irxjcl will prevent from using TSO commands and facilities

Re: Return Code of -3

PostPosted: Thu Feb 21, 2013 12:03 am
by nikesh_rai
Thanks Prino/Enrico,

Can you please give me some hints on this..

Re: Return Code of -3

PostPosted: Thu Feb 21, 2013 12:14 am
by enrico-sorichetti
running ISPF in batch has been discussed so many times that it has become a pretty boring subject
carry on a bit of research Yourself on this same forum or on the companion forum
http://ibmmainframes.com

Re: Return Code of -3

PostPosted: Thu Feb 21, 2013 1:04 pm
by nikesh_rai
I have modified my jcl to include all ISPF libs. Yet getting 'massage not found' error..

3 *-* ADDRESS ISPEXEC "ISPLLIB"                                       
       +++ RC(-3) +++                                                       
     4 *-* Address ISPEXEC "Control errors return"                         
       +++ RC(-3) +++                                                       
     6 *-* Address ISPEXEC "DISPLAY PANEL(PAN11) "                         
       +++ RC(-3) +++                                                       
READY                                                                       
  ISPSTART                                                                 
CMG999   Message ISPT036 - ISPT036  message not found in 'ISPMLIB' library.
READY                                                                       
END


My JCL looks like:

//STEP001  EXEC PGM=IKJEFT01,PARM='TSTREXX'         
//SYSEXEC  DD DISP=SHR,DSN=DPFCB.D393990.ISPCLIB     
//ISPPROF  DD DISP=SHR,DSN=DPFCB.D393990.VIL.ISPPROF
//         DD DISP=SHR,DSN=DPFCB.D393990.F01.ISPPROF
//ISPMLIB  DD DISP=SHR,DSN=DPFCB.D393990.ISPMLIB     
//ISPPLIB  DD DISP=SHR,DSN=DPFCB.D393990.ISPPLIB     
//ISPSLIB  DD DISP=SHR,DSN=DPFCB.D393990.ISPSLIB     
//ISPTLIB  DD DISP=SHR,DSN=DPFCB.D393990.ISPTLIB     
//SYSPROC  DD DISP=SHR,DSN=DPFCB.D393990.ISPCLIB     
//OUTDD    DD SYSOUT=*                               
//SYSTSPRT DD SYSOUT=*                               
//SYSPRINT DD SYSOUT=*                               
//SYSOUT   DD SYSOUT=*                               
//SYSTSIN  DD *                                     
  ISPSTART                                           
//SYSIN    DD DUMMY                                 
//                                                   


I am also not sure if I need to define more parameters with ISPSTART. I have googled and got some clue but didn't understand it:

//SYSTSIN  DD *
    PROFILE PREFIX(userid)
    ISPSTART CMD(%TEMPNAME) NEWAPPL(ISR)


Please help me... :)

Re: Return Code of -3

PostPosted: Thu Feb 21, 2013 2:47 pm
by nikesh_rai
I got it where is the issue.. gone through the manuals... problem is with
Address ISPEXEC "DISPLAY PANEL(PAN11)"


Just for the viewers..

We can not throw a panel if we are executing REXX routine from a JCL. We generally invoke such REXX rountines from JCL which do some processing and do not need any communication in the form of panels. If panels are being used, then use REXX in the foreground.


Thanks Enrico/Prino... :)