Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Need info on Cobol Db2 compilation and run procedure

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
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    Post subject: Need info on Cobol Db2 compilation and run procedure
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

Site Director


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

PostPosted: Wed Oct 17, 2007 10:24 pm    Post subject:
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    Post subject: Reply to: Need info on Cobol Db2
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: 216
Location: India

PostPosted: Thu Oct 18, 2007 3:43 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SQL query not working in Cobol program. CuriousMainframer COBOL Programming 14 Wed Feb 22, 2017 5:56 pm
No new posts Execute TSO ACF commands from COBOL-I... supreethi.srid TSO/ISPF 0 Tue Feb 21, 2017 5:19 pm
No new posts Mainframe Interview Questions CICS,CO... akshathan Mainframe Interview Questions 6 Thu Feb 09, 2017 6:38 pm
No new posts Submit job from Cobol with input data abdulrafi COBOL Programming 4 Wed Feb 01, 2017 12:41 pm
No new posts Calling procedure with multiple entri... steve-myers PL/I & Assembler 5 Fri Jan 27, 2017 3:33 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us