Thread: JCL and JCL Utilities

How do I compile and run a COBOL program with JCL?

Started by Sam • user3 replies247 viewsLast activity 2 weeks ago
Post #1
1 votes
Sam
Reputation
5
Posts: 28
Joined: Jul 1, 2026, 2:30 PM
Posted: Jul 27, 2026, 11:19 AM

I have a .cbl member. What is the usual path to compile, link, and run it on z/OS? Is there a standard PROC name I should call?

Post #2
0 votes
Bill
Reputation
221
Posts: 41
Joined: Aug 28, 2024, 7:08 AM
Posted: Jul 27, 2026, 1:19 PM

Most shops have a compile PROC (often something like IGYWCL or a site-wrapped version). You EXEC the PROC, point SYSIN at your source, and SYSLMOD at where the load module should go.

Ask your team for the "hello world compile" JCL. Do not invent one from a random blog on day one - library names differ everywhere.

Post #3
0 votes
Marty
Reputation
412
Posts: 58
Joined: Aug 12, 2024, 9:14 AM
Posted: Jul 27, 2026, 5:19 PM

After it compiles clean, a second step EXEC PGM=yourload with the DDs your program expects. Or a separate run job.

You must be signed in to reply to this thread