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
 
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 sort records based on length exceeds ... maxsubrat DFSORT/ICETOOL 7 Wed Oct 04, 2017 4:48 pm
No new posts JOINKEYS Paired and Unpaired Sort MFwhiz DFSORT/ICETOOL 4 Fri Sep 29, 2017 1:48 am
No new posts Where is output from PARM ABEXIT (SNA... packerm CA Products 3 Thu Sep 28, 2017 4:06 pm
No new posts MQ command in option 6 of ISPF! Vignesh Sid All Other Mainframe Topics 3 Tue Sep 26, 2017 6:01 pm
No new posts Difference in SORT & ICETOOL Mohan Kothakota DFSORT/ICETOOL 5 Fri Sep 22, 2017 4:56 pm

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