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
 
Cobol-DB2 run JCL

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

New User


Joined: 01 Sep 2005
Posts: 10
Location: Bangalore

PostPosted: Mon Jun 12, 2006 7:34 pm    Post subject: Cobol-DB2 run JCL
Reply with quote

Hi

pls send cobol-db2 run jcl and process

regards
yadagiri
Back to top
View user's profile Send private message

twissi

Active User


Joined: 01 Aug 2005
Posts: 105
Location: Somerset, NJ

PostPosted: Wed Jun 14, 2006 6:07 pm    Post subject:
Reply with quote

Hi Yadagiri,

It looks as follows, may vary slightly with the type of cobol you use:

Code:
//STEP010  EXEC PGM=IKJEFT01,DYNAMNBR=20               
//STEPLIB  DD DSN=your.load.lib.here,DISP=SHR         
//         DD DSN=SYS1.DSNDSNH.SDSNEXIT,DISP=SHR       
//         DD DSN=SYS1.DSNDSNH.SDSNLOAD,DISP=SHR       
//SYSTSIN  DD *                                       
  DSN SYSTEM(DSNH)                                     
  RUN PROGRAM(load_module) PLAN(plan_name)                 
  END                                                 
/*                                                     
//DD1          DD DUMMY                                   
//DD2         DD DUMMY                                   


Process:

Bind the DBRM of the program to database you want the program to be run against using plan_name.

Please get back to me/us in case of any questions.

Cheers, Twissi.
Back to top
View user's profile Send private message
yadagiri.p

New User


Joined: 01 Sep 2005
Posts: 10
Location: Bangalore

PostPosted: Thu Jun 15, 2006 6:26 pm    Post subject: Re: cobol-db2 run jcl
Reply with quote

Ok,
I have one more doubt,that is

What difference STEPLIB load library and DNN LOAD-MODULE

DSN RUN PROGRAM( )
PLAN ( )
LIBNAMELOAD-MODULE)


Regards
Yadagiri
Back to top
View user's profile Send private message
twissi

Active User


Joined: 01 Aug 2005
Posts: 105
Location: Somerset, NJ

PostPosted: Mon Jun 19, 2006 7:55 pm    Post subject:
Reply with quote

Hi Yadagiri,

Sorry to be late.

The STEPLIB is the library where you've the load module of your program.
And in SYSTSIN you mention the member name (RUN PROGRAM (member))
PLAN(member) contains the Plan_Name you used for binding the SQL statements (DBRM) of the program to the database you want the program to run against.

Hope I've answered your questions.
Cheers, Twissi.
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 IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm
No new posts Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am
This topic is locked: you cannot edit posts or make replies. Extract all "IF" Statements... Adarsh Damodaran CLIST & REXX 1 Wed Sep 06, 2017 9:28 am
No new posts ALPHABETIC check in COBOL vidyaa COBOL Programming 8 Thu Aug 17, 2017 7:13 pm
No new posts XML Parse for COBOL 5.2 Bhanu Praveen COBOL Programming 1 Sat Jul 08, 2017 8:58 pm

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