View previous topic :: View next topic
|
Author |
Message |
Sriram K
New User
Joined: 17 Feb 2009 Posts: 32 Location: Bangalore
|
|
|
|
Hi,
In my JCL there are 2 steps.
1 step - to update the table.
2 step - if updates are done, im writing some message to other tables.
Problem im facing:
In step-1 im using DSNTEP2 utility to update the table. Here even though there are SQLCODE 100 while updating, its giving me a succesful return code 0 for that step because of which step 2 starts executing.
If i get SQLCODE 100 or any bad return code i don't want to perform step 3 (next step). Can you suggest me on this. |
|
Back to top |
|
|
Escapa
Senior Member
Joined: 16 Feb 2007 Posts: 1399 Location: IL, USA
|
|
|
|
Hi Sriram,
DSNTEP2 doesnt have lot of flexibility,
Rather you should handle this in program (may be COBOL or PL1 or what ever is there at your shop) |
|
Back to top |
|
|
Srihari Gonugunta
Active User
Joined: 14 Sep 2007 Posts: 295 Location: Singapore
|
|
Back to top |
|
|
Sriram K
New User
Joined: 17 Feb 2009 Posts: 32 Location: Bangalore
|
|
|
|
Hi srihari,
Thanks for your suggestion. Can you please let me know how to specify PREPWARN in JCL. I wrote like below
RUN PROGRAM(DSNTEP4) PLAN(DSNTEP4) PREPWARN(YES)
It gave me invalid keyword PREPWARN. |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
Sriram,
From the link provided, that you obviously did not bother to read:
RUN PROGRAM(DSNTEP2) PLAN(DSNTEP91) PARMS('/ALIGN(LHS) MIXED TOLWARN(YES)') -
LIB('DSN910.RUNLIB.LOAD') |
|
Back to top |
|
|
Escapa
Senior Member
Joined: 16 Feb 2007 Posts: 1399 Location: IL, USA
|
|
|
|
Looks like PREPWARN is available in DB2 9.1 not in DB2 8 which I am using.. |
|
Back to top |
|
|
Sriram K
New User
Joined: 17 Feb 2009 Posts: 32 Location: Bangalore
|
|
|
|
Hi dick,
Because of lack of knowledge i was searching for the specific keyword
PREPWARN. Thanks for the information. going forward i won't repeat.
And when i use the above satement LIB('DSN910.RUNLIB.LOAD')
im getting error IKJ56228I DATA SET DSN910.RUNLIB.LOAD NOT IN CATALOG OR CATALOG CAN NOT BE ACCESSED. |
|
Back to top |
|
|
Srihari Gonugunta
Active User
Joined: 14 Sep 2007 Posts: 295 Location: Singapore
|
|
|
|
Sriram,
You have to use the loadlibs specific to your site. Please use your original job by changing the parms. |
|
Back to top |
|
|
|