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
 

 

Equals option in sort

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
paduchuri

New User


Joined: 03 Jan 2011
Posts: 32
Location: Hyderabad

PostPosted: Tue May 24, 2011 9:20 pm    Post subject: Equals option in sort
Reply with quote

Hi Every one,

Code:

SORT FIELDS=(1,6,CH,A),EQUALS
SUM FIELDS=NONE,XSUM         


I saw above code in my production control card,

some one please explain the functionality of the EQUALS option

I guess there is no need of using equals in above case.will in effect in the above case ? will the performence degrade in the above case?
Back to top
View user's profile Send private message

sqlcode1

Active Member


Joined: 08 Apr 2010
Posts: 578
Location: USA

PostPosted: Tue May 24, 2011 9:48 pm    Post subject:
Reply with quote

paduchuri,
Read about options here

Quote:
I guess there is no need of using equals in above case.will in effect in the above case ?
It may/can effect output. Run the same card with 2 input data shown below and observe output in each case.

However, looks like you have Syncsort installed at your shop.

Code:
AAAAAA01
AAAAAA02
AAAAAA03


Code:
AAAAAA03
AAAAAA02
AAAAAA01


Thanks,
Back to top
View user's profile Send private message
jerryte

Active User


Joined: 29 Oct 2010
Posts: 187
Location: Toronto, ON, Canada

PostPosted: Tue May 31, 2011 1:20 am    Post subject:
Reply with quote

The EQUALS option will ensure that if two or more records have the same sort key values then the order of those records is preserved. This could require extra processsing cost since it has to keep track of the order. Avoid it if possible.

In the sample code given the EQUALS will ensure that the first record of a matching set is kept while any other matching records are written to the XSUM dataset.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Tue May 31, 2011 2:59 am    Post subject:
Reply with quote

Hello,

Quote:
This could require extra processsing cost since it has to keep track of the order.
Very little additional cost is needed to do this. . .
Back to top
View user's profile Send private message
paduchuri

New User


Joined: 03 Jan 2011
Posts: 32
Location: Hyderabad

PostPosted: Tue May 31, 2011 2:18 pm    Post subject: Reply to: Equals option in sort
Reply with quote

Thanks for the information guys.
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 -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How to change 'K' or 'M' use Sort vice_versa DFSORT/ICETOOL 5 Thu May 18, 2017 7:11 am
No new posts Adding big TEXT lines to each record ... bshkris SYNCSORT 4 Sat May 06, 2017 1:40 am
This topic is locked: you cannot edit posts or make replies. SORT trick needed bshkris SYNCSORT 6 Tue May 02, 2017 4:35 am
No new posts SORT JSON type of data maxsubrat DFSORT/ICETOOL 8 Wed Apr 19, 2017 6:01 pm
No new posts Sort Large record length cmsmoon DFSORT/ICETOOL 14 Tue Apr 11, 2017 5:49 pm


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