View previous topic :: View next topic
|
Author |
Message |
yadagiri.p
New User
Joined: 01 Sep 2005 Posts: 10 Location: Bangalore
|
|
|
|
Hi
pls send cobol-db2 run jcl and process
regards
yadagiri |
|
Back to top |
|
|
twissi
Active User
Joined: 01 Aug 2005 Posts: 105 Location: Somerset, NJ
|
|
|
|
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 |
|
|
yadagiri.p
New User
Joined: 01 Sep 2005 Posts: 10 Location: Bangalore
|
|
|
|
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 |
|
|
twissi
Active User
Joined: 01 Aug 2005 Posts: 105 Location: Somerset, NJ
|
|
|
|
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 |
|
|
|