MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Question on SUM FIELDS=NONE for SYNCSORT

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
bprasanna
Beginner


Joined: 05 Sep 2003
Posts: 119
Topics: 33
Location: Hyderabad

PostPosted: Fri Oct 05, 2007 9:33 am    Post subject: Question on SUM FIELDS=NONE for SYNCSORT Reply with quote

Hi,
We have a SORT step where the SORT conditon is mentioned like this.

SORT FIELDS=(1,2,CH,A,7,10,CH,A,91,250,CH,A,341,
250,CH,A,432,218,CH,A)
Note : The input file is a flat file with 650 as the LRECL.

The record is having the spaces from 17 th to 90 the positoon.

After doing the SORT,there is a EZT program which will delete the dulicate records from the SORTED output file generated.The DUPLICATES are deleted based on the total length(650).

We are planning to remove the second step which is the EZT one by introducing the SUM FIELDS=NONE option.

can we do that ?

Thanks
Bprasanna
_________________
----------------
Thanks&Regards
Bprasanna
Back to top
View user's profile Send private message
vivek1983
Intermediate


Joined: 20 Apr 2006
Posts: 222
Topics: 24

PostPosted: Fri Oct 05, 2007 9:44 am    Post subject: Reply with quote

bprasanna,

My understanding:

1. Input file is 650 in length. In the first step you are sorting based on 5 fields.
2. After sorting you are using EZT to eliminate the duplicates based on the whole record (650 bytes length).
3. You need to know if the second step (EZT) can be eliminated using SYNCSORT.


If my understanding is correct then try my below suggestion:

1. First step, sort the file based on the whole length:

SORT FIELDS=(1,650,CH,A)
SUM FIELDS=NONE

2. In the second step include your sort card(based on 5 fields) to the output of the first step.

I guess you will get the desired results.

Hope I am not missing something.
_________________
Vivek G
--------------------------------------
A dream is just a dream. A goal is a dream with a plan and a deadline. (Harvey Mackay)
Back to top
View user's profile Send private message
bade_miya
Beginner


Joined: 10 Dec 2003
Posts: 110
Topics: 38

PostPosted: Fri Oct 05, 2007 10:18 am    Post subject: Reply with quote

Hi Prasanna,

Shouldnt you be droping the duplicates first using the sortcard mentioned by vivek above and then do the sorting with whatever records left in the file.

bade_miya
Back to top
View user's profile Send private message
Terry_Heinze
Supermod


Joined: 31 May 2004
Posts: 391
Topics: 4
Location: Richfield, MN, USA

PostPosted: Fri Oct 05, 2007 12:42 pm    Post subject: Reply with quote

Bprasanna,
Do you realize that sort fields 4 and 5 overlap and did you intend to leave out position 650 while sorting or is that a typo?
_________________
....Terry
Back to top
View user's profile Send private message Send e-mail
amargulies
Beginner


Joined: 10 Jan 2007
Posts: 123
Topics: 0

PostPosted: Fri Oct 05, 2007 1:40 pm    Post subject: Reply with quote

bprasanna,

Also, what happened to position 3-6? Are those blank also?
_________________
Alissa Margulies
SyncSort Mainframe Product Services
201-930-8260
zos_tech@syncsort.com
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group