View previous topic :: View next topic
|
Author |
Message |
narasridhar
New User
Joined: 12 Oct 2006 Posts: 32 Location: India
|
|
|
|
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 |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
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 |
|
|
narasridhar
New User
Joined: 12 Oct 2006 Posts: 32 Location: India
|
|
|
|
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 |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
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 |
|
|
|