IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How can I abend the job if I get duplicate records in a DSet


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
puneetvirmani143

New User


Joined: 24 Jul 2007
Posts: 55
Location: noida

PostPosted: Tue Feb 05, 2008 10:42 am
Reply with quote

Hi,
Using ICETOOL I have sorted the duplicate records in a dataset.
Is there some logic to abend a job if I get duplicates in a dataset and should process further if dataset is empty ?


Thanks
Puneet
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Tue Feb 05, 2008 2:33 pm
Reply with quote

ABEND, I wannna ABEND. This is a very resource intensive methodology to attract attention.

What you want is a return code produced that your JCL statements can interrogate (cond or IF) and provide proper step execution sequence.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Tue Feb 05, 2008 2:58 pm
Reply with quote

Hi,

When do You call some record as 'dulicate'?
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Tue Feb 05, 2008 9:55 pm
Reply with quote

Puneet,

To get a different return code for an empty or non-empty data set, you can use the technique described in the "Set RC=12 or RC=4 if file is empty, has more than n records, etc" Smart DFSORT Trick at:

www.ibm.com/servers/storage/support/software/sort/mvs/tricks/
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Duplicate transid's declared using CEDA CICS 3
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Pulling a fixed number of records fro... DB2 2
No new posts ISAM and abend S03B JCL & VSAM 10
No new posts Join multiple records using splice DFSORT/ICETOOL 5
Search our Forums:

Back to Top