Can we compile a COBOL program without a JCL?

OS/VS COBOL, COBOL II, Enterprise COBOL for z/OS. OpenCOBOL and OOCobol.
Post Reply
Jina Baruah
New Member
Posts: 6
Joined: Sun Apr 27, 2014 10:41 am

Can we compile a COBOL program without a JCL?

Post by Jina Baruah »

Hi,

As the subject line says it, can we compile a COBOL program without a JCL? If yes, how's that possible?
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1891
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

Re: Can we compile a COBOL program without a JCL?

Post by Robert Sample »

Yes. If your site is set up for it, TSO / ISPF supports a compile option (usually 4) for Foreground compile. You can also directly call the COBOL compile with a TSO command -- but that requires being knowledgeable enough to allocate the compiler data sets in TSO. Or you can go into Unix System Services (OMVS) and use the command-line compiler there.
Jina Baruah
New Member
Posts: 6
Joined: Sun Apr 27, 2014 10:41 am

Re: Can we compile a COBOL program without a JCL?

Post by Jina Baruah »

Thanks Robert. I'll work on those lines and get back if I stuck somewhere.

Thanks.
enrico-sorichetti
Global Moderator
Global Moderator
Posts: 826
Joined: Wed Sep 11, 2013 3:57 pm

Re: Can we compile a COBOL program without a JCL?

Post by enrico-sorichetti »

remember, anyway, that running compilations under TSO is frowned upon/FORBIDDEN in most organisations
so even just playing with it might get You into trouble.
( quite often even the relative ISPF panel/choice is removed from the available options )
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort 8-)
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “IBM COBOL, GnuCOBOL (OpenCOBOL), OOCobol.”