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

Efficient usage of INCLUDE/OMIT condition


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

New User


Joined: 20 Jan 2012
Posts: 6
Location: India

PostPosted: Tue Jan 24, 2012 4:27 pm
Reply with quote

Both Include and Omit condition could be used to cater the same purpose for several occasions.

For instance,

A) SORT FIELDS=COPY
INCLUDE COND=(1,5,CH,NE,C'XXXXX')

B) SORT FIELDS=COPY
OMIT COND=(1,5,CH,EQ,C'XXXXX')

Which one is more efficient usage and why ?
Back to top
View user's profile Send private message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1742
Location: Tirupur, India

PostPosted: Tue Jan 24, 2012 4:36 pm
Reply with quote

publib.boulder.ibm.com/infocenter/zos/v1r12/index.jsp?topic=%2Fcom.ibm.zos.r12.iceg200%2Ftail.htm

"Your choice of an INCLUDE or OMIT statement depends on which is easier and more efficient to write for a given application. You cannot use both statements together."

It appears both are equally effecient in terms of performance perspective. I could be wrong as well.
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Tue Jan 24, 2012 4:49 pm
Reply with quote

I also don't think performance is affected.

INCLUDE NE is less "natural" than OMIT EQ, in my opinion. I would write the one which is most easy to understand in the particular situation.
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 Jan 24, 2012 11:56 pm
Reply with quote

Quote:
Both Include and Omit condition could be used to cater the same purpose for several occasions.

Which one is more efficient usage and why ?


They are equal in efficiency.
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 INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Use input file with OMIT rcd keys? DFSORT/ICETOOL 15
No new posts STEM usage in REXX CLIST & REXX 14
No new posts z/OS Modules Usage report using SMF 42 DFSORT/ICETOOL 2
No new posts Concatenate 2 fields (usage national)... COBOL Programming 2
Search our Forums:

Back to Top