View previous topic :: View next topic |
Author |
Message |
Novice Beginner
Joined: 27 Dec 2002 Posts: 46 Topics: 15
|
Posted: Wed Jun 01, 2005 7:46 am Post subject: DISP coded as (OLD,KEEP,DELETE) and deleted in abend |
|
|
Could any one help me in understanding the following?
A cobol + db2 program is run in the following job, which uses two input files for comparison and if the key matches then updates Db2 table and If the key on file1 doesn |
|
Back to top |
|
 |
nevilh Beginner
Joined: 11 Aug 2004 Posts: 115 Topics: 0
|
Posted: Wed Jun 01, 2005 8:34 am Post subject: |
|
|
Step D finished cc=12 this is not an abend so the system will delete the datasets |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12380 Topics: 75 Location: San Jose
|
Posted: Wed Jun 01, 2005 8:44 am Post subject: |
|
|
Novice,
As nevilh mentioned , you need to code an step to check the cond codes and then abend based on the cond code
Code: |
//STEP0100 EXEC PGM=MY PGM
...
//STEP0101 EXEC PGM=ABEND,
// COND=(0,EQ,STEP0100)
//SYSUDUMP DD SYSOUT=*
|
Hope this helps...
Cheers
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
 |
Novice Beginner
Joined: 27 Dec 2002 Posts: 46 Topics: 15
|
Posted: Wed Jun 01, 2005 11:29 pm Post subject: |
|
|
Thanks for the clarification
Novice |
|
Back to top |
|
 |
|
|