IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Please help me to use the IKJEFTSR utility in COBOL


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Prasun De

New User


Joined: 17 Jan 2008
Posts: 28
Location: Kolkata, INDIA

PostPosted: Tue Apr 29, 2008 3:18 pm
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Apr 29, 2008 8:02 pm
Reply with quote

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
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Tue Apr 29, 2008 9:34 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
No new posts Generate random number from range of ... COBOL Programming 3
Search our Forums:

Back to Top