Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Please help me to use the IKJEFTSR utility in COBOL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: Please help me to use the IKJEFTSR utility in COBOL
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

Site Director


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

PostPosted: Tue Apr 29, 2008 8:02 pm    Post subject:
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

Moderator Team Head


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

PostPosted: Tue Apr 29, 2008 9:34 pm    Post subject: Reply to: Please help me to use the IKJEFTSR utility in COBO
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts TSO or command line utility to genera... kishpra JCL & VSAM 3 Thu Mar 09, 2017 1:11 am
No new posts SQL query not working in Cobol program. CuriousMainframer COBOL Programming 14 Wed Feb 22, 2017 5:56 pm
No new posts Execute TSO ACF commands from COBOL-I... supreethi.srid TSO/ISPF 0 Tue Feb 21, 2017 5:19 pm
No new posts Mainframe Interview Questions CICS,CO... akshathan Mainframe Interview Questions 6 Thu Feb 09, 2017 6:38 pm
No new posts Submit job from Cobol with input data abdulrafi COBOL Programming 4 Wed Feb 01, 2017 12:41 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us