Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Efficient usage of INCLUDE/OMIT condition

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
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    Post subject: Efficient usage of INCLUDE/OMIT condition
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: 1522
Location: Chennai

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

http://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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7315

PostPosted: Tue Jan 24, 2012 4:49 pm    Post subject: Reply to: Efficient usage of INCLUDE/OMIT condition
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 Moderator


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

PostPosted: Tue Jan 24, 2012 11:56 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts More than 1 Include criteria for sing... Roy Ware SYNCSORT 6 Wed Sep 13, 2017 11:45 pm
No new posts BUILD OUTFIL based on condition other... balaji81_k DFSORT/ICETOOL 13 Fri Sep 08, 2017 11:06 pm
No new posts )SEL and )ENDSEL usage cvnlynn TSO/ISPF 4 Thu Jun 15, 2017 1:15 am
No new posts Include/omit with "ALL" pa... mgl DFSORT/ICETOOL 6 Wed Jun 14, 2017 2:31 pm
This topic is locked: you cannot edit posts or make replies. Need help on If condition continuatio... ashok_uddaraju CLIST & REXX 4 Fri May 19, 2017 8:55 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us