View previous topic :: View next topic
|
Author |
Message |
Prasun De
New User
Joined: 17 Jan 2008 Posts: 28 Location: Kolkata, INDIA
|
|
|
|
Hello,
I have taken a code from this forum to execute TSO command from a COBOL program.
http://ibmmainframes.com/viewtopic.php?t=3194&highlight=ikjeftsr
It worked fine with the given ALLOCATE command.
But when I am changing it to a submit command like
"SUB 'USERID.JOBLIB(JOB01)'", the IKJEFTSR utility is getting a return code = 12 & REASON CODE = J.
Could you please help me to understand this error.
Thanks & Regards
Prasun De |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Please post the jcl you used to run your code. Also, post any diagnostic info presented by the execution - from any of the jes outputs. |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
I also attempted to do what you're trying to do and I got the same error message. I can't find a definite answer, but it appears that certain "authorized" TSO commands will not work under the IKJEFTSR environment. SUBMIT appears to be one of them, like STATUS, OUTPUT, XMIT, and RECEIVE. You might be able to invoke a CLIST or REXX exec, which could in turn submit the designated job.
As an alternative, can you use ISPF Services for File Tailoring and take advantage of skeleton JCL, or can you just write your JCL directly to the Internal Reader for submission instead? |
|
Back to top |
|
|
|