View previous topic :: View next topic
|
Author |
Message |
arindambanerjee
New User
Joined: 30 Jun 2007 Posts: 39 Location: India
|
|
|
|
can anyone please outline the steps involved and the significance in compiling a Cobol program and a Cobol DB2 program? |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Hi,
These type of JCLs are standard & specific to shops you work for and usually shops are using version control tools these days, such as Change Man... |
|
Back to top |
|
|
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
|
|
Hi,
I think OP just wanted to know the steps and not the exact JCL.
Quote: |
can anyone please outline the steps involved and the significance in compiling a Cobol program and a Cobol DB2 program? |
for a normal COBOL program:
- Compile and create an object module (using compilers )
- Link the object module to create an executable load
for a COBOL - DB2 program
- DB2 Precompile (DBRM created)
- Compile the modified source code
- Link-edit to create the load module
- DB2 Bind to create an access path
For more information on all these steps please read the forum manuals. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Hi Aaru,
If so
Quote: |
OP just wanted to know the steps and not the exact JCL. |
then may be looking at this link would help.. www.ibmmainframes.com/jcls.php . Checking COMPILE JCL, RUN JCL & SAMPLE PROGRAM WITH JCLS might help. |
|
Back to top |
|
|
arindambanerjee
New User
Joined: 30 Jun 2007 Posts: 39 Location: India
|
|
|
|
Thanks for your discussions. Actually the thing is that that could you please tell me like the way given below:
For simple COBOL-->
IGYWCL,-->It does compilation, what parameters are passed and what it does.
IEWL(if I am not wrong)-->it link edits and create the load module, but how it does so.
Similarly for COBOL Db2 and COBOL CICS.
If it can be discussed in this manner it would be of great help. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
If you post jcl you are using, we can explain what your jcl does.
Quote: |
what parameters are passed and what it does. |
The parameters passed to the compiler are site-specific and developers need to use the standard setup for the system they are working on. All of the parameters are described in the documentaton availabel via the "IBM Manuals" link at the top of the page. There is no reason to post them all here - it is a long list.
Yes, IEWL is the link editor. Simly said, the link editor resolves all of the resources that were not known or should not be resolved at compile time. It turns object modules into load modules.
The same is true for DB2 anc CICS probrams except they have pre-compilers that resolve db2 and cics EXECs before the compiler is run. In db2 programs, there is also a subsequent bind process. |
|
Back to top |
|
|
|