IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Cobol and Cobol-Db2 program linking


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
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
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: 2358
Location: Israel

PostPosted: Thu Oct 26, 2006 12:17 pm
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
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: 2358
Location: Israel

PostPosted: Thu Oct 26, 2006 1:57 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts Using API Gateway from CICS program CICS 0
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
Search our Forums:

Back to Top