MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

DISP coded as (OLD,KEEP,DELETE) and deleted in abend

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
Novice
Beginner


Joined: 27 Dec 2002
Posts: 46
Topics: 15

PostPosted: Wed Jun 01, 2005 7:46 am    Post subject: DISP coded as (OLD,KEEP,DELETE) and deleted in abend Reply with quote

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


Joined: 11 Aug 2004
Posts: 115
Topics: 0

PostPosted: Wed Jun 01, 2005 8:34 am    Post subject: Reply with quote

Step D finished cc=12 this is not an abend so the system will delete the datasets
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12380
Topics: 75
Location: San Jose

PostPosted: Wed Jun 01, 2005 8:44 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Novice
Beginner


Joined: 27 Dec 2002
Posts: 46
Topics: 15

PostPosted: Wed Jun 01, 2005 11:29 pm    Post subject: Reply with quote

Thanks for the clarification

Novice
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group