using JCL in cobol
Moderators: dbzTHEdinosauer, Moderator Group
-
- Member
- Posts: 2
- Joined: Sun Oct 21, 2012 11:14 am
- Location: bangalore
using JCL in cobol
hello everyone. this is my first post ever....... hope i get my answer asap.
I WANTED TO KNOW THE METHOD OF RUNNING A JCL PROGRAM FROM COBOL. EXPLAINATION WITH A SIMPLE EXAMPLE WOULD BE PERFECT. I SEARCHED ALL OVER THE INTERNET BUT COULDNT FIND A SIMPLE, DIRECT SOLUTION......
THIS QSTION WAS ASKED IN MY CLASS QUIZ.... AND I HAVE BEEN GIVEN 1 DAY TIME TO FIND THE ANSWER.....
I WANTED TO KNOW THE METHOD OF RUNNING A JCL PROGRAM FROM COBOL. EXPLAINATION WITH A SIMPLE EXAMPLE WOULD BE PERFECT. I SEARCHED ALL OVER THE INTERNET BUT COULDNT FIND A SIMPLE, DIRECT SOLUTION......
THIS QSTION WAS ASKED IN MY CLASS QUIZ.... AND I HAVE BEEN GIVEN 1 DAY TIME TO FIND THE ANSWER.....
samanth
Tough to give a usable answer asap, when the question is quite unclear. . .
Fiirst - there is no such thing as a "JCL Program". When a batch COBOL program (rather than an online program) is executed it is invoked by JCL - but only after it has been compiled/linked.
If you clarify what you really mean, someone will probably have a suggestion.
Yes, i suspect looking for the answer on the internet would be quite frustrating as i expect no useful topics are there.
PS. it is 2:30 am at my desk and i'm not sure how much longer i'll be tonight.
Fiirst - there is no such thing as a "JCL Program". When a batch COBOL program (rather than an online program) is executed it is invoked by JCL - but only after it has been compiled/linked.
If you clarify what you really mean, someone will probably have a suggestion.
Yes, i suspect looking for the answer on the internet would be quite frustrating as i expect no useful topics are there.
PS. it is 2:30 am at my desk and i'm not sure how much longer i'll be tonight.
Have a good one
-
- Active Member
- Posts: 732
- Joined: Thu May 24, 2012 4:07 am
-
- Member
- Posts: 2
- Joined: Sun Oct 21, 2012 11:14 am
- Location: bangalore
dikdude and collins .... thnx for your interest in replying to my qstion.... though it is unclear.... now i get it.... weshould use move " //step1.... " statement to transfer the jcl lines into a file and then submit that file.... god its so obvious and simple..... i should have thought abt it.
anyways thnx i would be posting new dubts later.... get ready to answr them...lol
anyways thnx i would be posting new dubts later.... get ready to answr them...lol
samanth
I suspect it is "How do I submit a batch job from a COBOL program?" So 2 different interpretations. Also, why is thw question being double SHOUTED (asked in bold as well as in all upper case)? Also, we do not do asap - we do as and when we feel like it. If that is 'asap' then be prepared for 'asap' to be quite some time in the future maybe days or even weeks in extreme cases.
If the interpretation is as I think then William Collins has given you the gist of the method.
If the interpretation is as I think then William Collins has given you the gist of the method.
Last edited by NicC on Mon Oct 22, 2012 12:02 am, edited 1 time in total.
Regards
Nic
Nic
FREE TUTORIALS
Tutorials
Free tutorials from mainframegurukul
- JCL Tutorial
Covers all important JCL concepts. - Cobol Tutorial
This tutorials covers all Cobol Topics from STRING to COMP-3. - DB2 Tutorial
DB2 Tutorial focuses on DB2 COBOL Programming. - SORT Tutorial
This Tutorial covers all important aspects of DFSORT with examples - CICS Tutorial
This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions
- Cobol Interview Questions
50+ Interview Questions - JCL Interview Questions
50+ Interview Questions - DB2 Interview Questions
100+ Interview Questions - CICS Interview Questions
70+ Interview Questions - VSAM Interview Questions
27 Interview Questions
Other References
Mainframe Tools and others
- XPEDITER Reference
Explains how we can debug a program - FILEAID Reference
Explains how to browse , edit and delete datasets - Change Man Reference
Quick Start tutorial on Changeman - Abend Reference
Important Abend codes explained - FaceBook Page
MainframeGurukul FaceBook Page - LinkedIn Page
MainframeGurkul Linkedin Page