Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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: 1475
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: 7306

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 Joinkeys with condition scdinesh DFSORT/ICETOOL 10 Tue Feb 14, 2017 12:20 am
This topic is locked: you cannot edit posts or make replies. How to pass the previous month date i... Suganya87 DFSORT/ICETOOL 5 Mon Oct 31, 2016 4:13 pm
No new posts Efficient sorting chandracdac DFSORT/ICETOOL 5 Sat Oct 22, 2016 3:23 am
No new posts INCLUDE condition questions van bui DFSORT/ICETOOL 1 Thu Jun 30, 2016 9:52 am
No new posts 2 vsam file compare and update a fiel... ABINAYATHULASI DFSORT/ICETOOL 6 Sun May 29, 2016 11:15 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us