Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 215
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 IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm
No new posts Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am
No new posts Create procedure issues -628 when add... chandraBE DB2 1 Mon Sep 18, 2017 12:16 pm
This topic is locked: you cannot edit posts or make replies. Extract all "IF" Statements... Adarsh Damodaran CLIST & REXX 1 Wed Sep 06, 2017 9:28 am
No new posts ALPHABETIC check in COBOL vidyaa COBOL Programming 8 Thu Aug 17, 2017 7:13 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us