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
 

 

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
No new posts Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm
No new posts OO COBOL compile error Virendra Shambharkar COBOL Programming 3 Tue Jan 10, 2017 6:05 pm
No new posts Need Suggestion on COBOL program vickey_dw COBOL Programming 5 Thu Jan 05, 2017 10:55 pm
No new posts I can not compile my program PL1 V3.R... Miguel Fernandez PL/I & Assembler 13 Tue Dec 06, 2016 8:30 pm
No new posts IMS BMP program causes 878 system abend Artemk IMS DB/DC 7 Tue Nov 22, 2016 8:26 pm


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