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
 
Cobol and Cobol-Db2 program linking

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
narasridhar

New User


Joined: 12 Oct 2006
Posts: 32
Location: India

PostPosted: Thu Oct 26, 2006 10:40 am    Post subject: Cobol and Cobol-Db2 program linking
Reply with quote

Hi,

I have a plain cobol program. I want to call a program which is the Cobol-Db2 from the plain cobol program. How it is going to call or we can not do that?

Because to run a Db2 program we need IKJEFT01 step, but here this is sub program but the main program is only Cobol program....

Can anyone spend some time and clarify this doubt .......

Thanks in advance
Back to top
View user's profile Send private message

ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Thu Oct 26, 2006 12:17 pm    Post subject:
Reply with quote

You call the DB2 program the same way like you call any other COBOL program.

However, you are correct that now you have to invoke the main program under the DSN interface (what you called IKJEFT01).

O.
Back to top
View user's profile Send private message
narasridhar

New User


Joined: 12 Oct 2006
Posts: 32
Location: India

PostPosted: Thu Oct 26, 2006 12:35 pm    Post subject: Re: Cobol and Cobol-Db2 program linking
Reply with quote

However when we are running the cobol-db2 program we are giving plan and the program name but here our plain cobol program will not be there in the plan, and where our cobol-db2 program name going to mention...

Could anyone can explain some what detail how it is going to connect these programs

Thanks in advance
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Thu Oct 26, 2006 1:57 pm    Post subject:
Reply with quote

I repeat - You don't need to "connect" them. In your batch job, use IKJEFT01 to run your program under the DSN interface. In the PROGRAM parameter, supply the name of the plain-COBOL program. In the PLAN parameter, supply the name of the COBOL-DB2 program.

O.
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
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
No new posts XML Parse for COBOL 5.2 Bhanu Praveen COBOL Programming 1 Sat Jul 08, 2017 8:58 pm
No new posts Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm
No new posts pre-compiler for program in an HFS Pedro DB2 0 Fri Jun 23, 2017 11:13 pm

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