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
This topic is locked: you cannot edit posts or make replies. Cobol GUI (like Editor) Kala Mainframe COBOL Programming 14 Wed May 10, 2017 12:30 pm
No new posts IMS T-Pipe queue counts in a COBOL Pr... Siva NKK Kothamasu IMS DB/DC 0 Tue May 09, 2017 6:31 pm
No new posts COBOL Code Parsers and Lineage Establ... balimanja COBOL Programming 2 Tue May 02, 2017 3:30 am
No new posts Cobol upgrade - source code missing f... gthmrj IBM Tools 1 Wed Apr 26, 2017 6:04 pm
No new posts Need help in REXX CALL program Raje1002 CLIST & REXX 5 Wed Apr 19, 2017 11:18 pm


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