|
View previous topic :: View next topic
|
| Author |
Message |
Sreedharp
New User
Joined: 20 Jul 2005 Posts: 2
|
|
|
|
Hi,
I have a non db2 program calling a db2 program. Please let me know how to compile my main program and how to refer that in my JCL |
|
| Back to top |
|
 |
somasundaran_k
Active User
.jpg)
Joined: 03 Jun 2003 Posts: 134
|
|
|
|
You have to bind the subprogram (cobol-db2) and invoke the main program using IKJEFT01. Specify the plan name of the sub-program.
| Code: |
//SYSTSIN DD *
DSN SYSTEM(your dsn)
RUN PROGRAM(your main program) PLAN(plan name for sub-prog) -
LIB('load library')
/*
|
hth
-Som |
|
| Back to top |
|
 |
Sreedharp
New User
Joined: 20 Jul 2005 Posts: 2
|
|
|
|
Thanks for the information.
Do i need to compile the main program as db2 program i.e; precompile and bind or like a ordinary program |
|
| Back to top |
|
 |
notonly4u
New User
.jpg)
Joined: 26 Apr 2005 Posts: 87 Location: Hyderabad
|
|
|
|
Dear sreedhar,
While you compile do yu use external bind?
If so then you have to bind for the sub program and it is enough if you do a precompile, Compile and linkedit the main program. You can't bind the main Non db2 program because there will not be any DBRM created for that program.
If yu have any queries.... Let me know. And also do correct me if Iam wrong somewhere....
Regards
Tanden |
|
| Back to top |
|
 |
|
|