IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Need info on Cobol Db2 compilation and run procedure


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
aru_bec

New User


Joined: 23 Dec 2005
Posts: 19
Location: Bangalore

PostPosted: Wed Oct 17, 2007 3:54 pm
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Oct 17, 2007 10:24 pm
Reply with quote

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
View user's profile Send private message
aru_bec

New User


Joined: 23 Dec 2005
Posts: 19
Location: Bangalore

PostPosted: Wed Oct 17, 2007 11:12 pm
Reply with quote

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
View user's profile Send private message
sri_mf

Active User


Joined: 31 Aug 2006
Posts: 218
Location: India

PostPosted: Thu Oct 18, 2007 3:43 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
No new posts Generate random number from range of ... COBOL Programming 3
Search our Forums:

Back to Top