Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
executing a Cobol-DB2 program

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
View previous topic :: :: View next topic  
Author Message
Rajeev_mainframe

New User


Joined: 21 Aug 2006
Posts: 13

PostPosted: Wed Sep 13, 2006 4:16 am    Post subject: executing a Cobol-DB2 program
Reply with quote

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
View user's profile Send private message

kgumraj

Active User


Joined: 01 May 2006
Posts: 151
Location: Hyderabad

PostPosted: Wed Sep 13, 2006 8:20 pm    Post subject: Re: executing a Cobol-DB2 program
Reply with quote

//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
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1452
Location: Chicago, IL

PostPosted: Thu Sep 14, 2006 9:24 am    Post subject: Re: executing a Cobol-DB2 program
Reply with quote

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 ??? icon_rolleyes.gif
Back to top
View user's profile Send private message
Rajeev_mainframe

New User


Joined: 21 Aug 2006
Posts: 13

PostPosted: Sat Sep 30, 2006 3:13 am    Post subject: Re: executing a Cobol-DB2 program
Reply with quote

Hi friends,
Thanks for the responses. I used the utility BMCADM and it solved the binding issues.

Thanks,
Rajeev
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 -> Mainframe Interview Questions All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Linkage editor is part of COBOL, z/OS... ankit.jain COBOL Programming 4 Fri Apr 20, 2018 4:17 pm
This topic is locked: you cannot edit posts or make replies. Difference between EQUAL and EQUAL TO... jithinraghavan COBOL Programming 3 Thu Apr 19, 2018 2:22 am
No new posts How do you attach a DB2 plan to a CIC... John Poulakos DB2 0 Wed Apr 18, 2018 1:49 am
No new posts Call COBOL or PLI with a click from w... vaibhav gs All Other Mainframe Topics 1 Mon Apr 16, 2018 7:29 pm
No new posts VSAM file NOT Found error while proce... SumaReva CICS 5 Wed Apr 11, 2018 9:54 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us