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.
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.