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 

Stop after finding the first record

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
bade_miya
Beginner


Joined: 10 Dec 2003
Posts: 110
Topics: 38

PostPosted: Wed Feb 15, 2006 5:33 am    Post subject: Stop after finding the first record Reply with quote

Hi all,
I did a quick search for this and didnt find any topics specificaly for this purpose. I am using a sort step include condition to filter out one particular record. The file may be having more than one occurance of that record but i want the search to terminate after it finds the first match. I am using a huge input reference file. So even after finding the correct record, its taking long time to finish the sort. Is there a way to exit the sort after the first match is found?

The sort step which i am using right now is

Code:


sort fields=copy
include cond=(19,10,ch,eq,c'xxxxxxxxxx')



I am using DFSORT in my site.
Please let me know in case you need any more details.

Thanks
Bade_miya.
Back to top
View user's profile Send private message
pzmohanty
Beginner


Joined: 20 May 2004
Posts: 97
Topics: 43
Location: hyderabad, India

PostPosted: Wed Feb 15, 2006 6:00 am    Post subject: Reply with quote

Hi ,

Please use the following SORT CARD :-

Use STOPAFT parameter to specify the number of records to be processed

Code:

   SORT FIELDS=COPY,STOPAFT=1
   INCLUDE COND=(19,10,CH,EQ,C'xxxxxxxxxx')

_________________
Priya Ranjan Mohanty
Consultant
Kanbay Software (I) pvt. Ltd.
Hyderabad
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
bade_miya
Beginner


Joined: 10 Dec 2003
Posts: 110
Topics: 38

PostPosted: Wed Feb 15, 2006 6:21 am    Post subject: Reply with quote

Hi Priya,

Thanks for the help. It worked.

Thanks,
bade_miya.
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 -> Utilities 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