Page 1 of 1

RC(-3) In Libdef

PostPosted: Fri Jun 19, 2009 1:21 pm
by eprasad629
Hi All,

Good Day!!

I'm having a concern while issuing LIBDEF.

I have a program that generates an automated JCL. Whenever I run the program, I see the JCL constructed succesfully. However when I fabricate my program into JCL and submit it, I'm getting a RC (-3). The same error being thrown for ‘ftincl’ command too.

Since it doesn't throw 'Command Not Found', it doesn't seem to be a wrong addressing problem.

Re: RC(-3) In Libdef

PostPosted: Fri Jun 19, 2009 4:02 pm
by MrSpock
eprasad629 wrote:Since it doesn't throw 'Command Not Found', it doesn't seem to be a wrong addressing problem.


I disagree. It sure appears that you're attempting to use ISPF Services without ISPF being active.

Re: RC(-3) In Libdef

PostPosted: Fri Jun 19, 2009 4:05 pm
by expat
Or perhaps without the appropriate ISPF libraries being allocated in your batch job

Re: RC(-3) In Libdef

PostPosted: Fri Jun 19, 2009 4:07 pm
by expat
However, if you post the error codes and messages issued it may help us to help you.

Re: RC(-3) In Libdef

PostPosted: Tue Jun 23, 2009 4:11 pm
by eprasad629
Hi MrSpock/Expat,

Thanks a lot for your analysis.

However, it seems we cannot include ISPF services in a rexx exec when it runs through a JCL.

I tried with the QUEUE Option instead of FTINCL and this has worked out.

Once again thanking you for your investigation on this.

Re: RC(-3) In Libdef

PostPosted: Wed Jun 24, 2009 11:30 am
by expat
However, it seems we cannot include ISPF services in a rexx exec when it runs through a JCL.

Oh....... I have been doing this for years.

type TSO ISRDDN on the command line, and see the librarie allocated to your ISPF session in foreground.
Now all you need to do is to include the majors, ISPPLIB, ISPSLIB, ISPMLIB, ISPTLIB in your batch job.