View previous topic :: View next topic
|
Author |
Message |
Rajeev_mainframe
New User
Joined: 21 Aug 2006 Posts: 13
|
|
|
|
Hi all,
I am pretty new to DB2 environment. I need info as to how do we run a Cobol-DB2 program. can anyone give the sample bind JCL, and brief me about the steps.
Thanks,
Rajeev |
|
Back to top |
|
|
kgumraj
Active User
Joined: 01 May 2006 Posts: 151 Location: Hyderabad
|
|
|
|
//DSNTIAUL EXEC DSNHCOB2,
// USER=userid,MEM=<member name>,PARM.PC=SOURCE,
// PARM.COB=LIB
//PC.SYSLIB DD
// DSN=<lib where include library is located>,
// DISP=SHR
//PC.SYSIN DD DSN=<dataset where code is present> ,
// DISP=SHR
//PC.SYSCIN DD DSN=<where modified code need to be given>,
// DISP=SHR
//COB.SYSLIB DD DSN=<lib where copylib are present> ,
// DISP=SHR
//COB.SYSIN DD DSN=<where precompiler output is present>,
// DISP=SHR
//LKED.SYSIN DD DUMMY
Note load module will be created default dataset also the same is true for DBRM
Hope that was helpful |
|
Back to top |
|
|
priyesh.agrawal
Senior Member
Joined: 28 Mar 2005 Posts: 1448 Location: Chicago, IL
|
|
|
|
1> Write COBOL-DB2 Proram.
2> Compile program with DB2 precompile.
3> Bind the plan.
4> Write & execute JCL to run this program.
Am I missing something ??? |
|
Back to top |
|
|
Rajeev_mainframe
New User
Joined: 21 Aug 2006 Posts: 13
|
|
|
|
Hi friends,
Thanks for the responses. I used the utility BMCADM and it solved the binding issues.
Thanks,
Rajeev |
|
Back to top |
|
|
|