View previous topic :: View next topic
|
Author |
Message |
aru_bec
New User
Joined: 23 Dec 2005 Posts: 19 Location: Bangalore
|
|
|
|
Hi all,
I am bit confused about the compilation and run procedure for the Cobol DB2 programs. Before posting I searched the forums but couldn't find the exact procedure in the discussions listed below. Experts please help me.
http://ibmmainframes.com/about5638.html
http://ibmmainframes.com/post-101062.html
http://ibmmainframes.com/about76.html
Question 1 - I have a main program A which is pure Cobol program. The program A calls sub program B which is a Cobol - Db2 program. How the JCL would look like (normal cobol JCL or Cobol - DB2 jcl?) for the main program?
scenario 1 : Program A calls program B statically.
scenario 2 : Program A calls program B dynamically.
Question 2: The main program A and sub program B both are Cobol - DB2 programs. How the JCL would look like in this case?
scenario 1 : Program A calls program B statically.
scenario 2 : Program A calls program B dynamically. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Your best alternative is to talk with the system support or DBA people who support the developers on your system.
They will be able to show which jcl you should use.
You should not create your own jcl for compiling. This should be standard in your organization. |
|
Back to top |
|
|
aru_bec
New User
Joined: 23 Dec 2005 Posts: 19 Location: Bangalore
|
|
|
|
Hello Dick,
Currently I am not working on DB2 systems. Yes, I know every organization has their standard utility JCLs to compile and run the programs. I am not writing any new JCLs. This was a question asked in an interview. I want to know the differences in each scenarios. |
|
Back to top |
|
|
sri_mf
Active User
Joined: 31 Aug 2006 Posts: 218 Location: India
|
|
|
|
Question-1:
For Static call Compile the subprogram first and then main program.
Bind the Mainprogram as it is Cobol-DB2 pgm and Run it using the plan u have Created.
For Dynamic call u can compile in any order.
Question-2.
Same as Question-1,the only diff is u have to bind the sub program nad use that in the Run Jcl. |
|
Back to top |
|
|
|