IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Truncation of records happening in DFSORT


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
prasanth_bs

New User


Joined: 08 Aug 2005
Posts: 9

PostPosted: Wed Jan 10, 2007 2:39 pm
Reply with quote

Hi,

I am having more than 3999996 records in a file .I am doing a sort using DFsort my sort card corresponds to
SORT FIELDS=(225,1,PD,A,
164,1,PD,A,
165,1,PD,A,
166,5,PD,A)

My file is of 200 in lrecl .After the sort i writing the records to a datset .while doing doing this lot of records are getting truncated(ie, lot of records which are there in input dataset are not present in output dataset after the sort).Is there any limiitation in DF sort for the number of records.

Could you please share your thoughts on this???

Thanks a lot
Back to top
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1208
Location: Bangalore,India

PostPosted: Wed Jan 10, 2007 2:42 pm
Reply with quote

HI prasanth_bs,

Do u have any omit or include cond in your sort card?
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Wed Jan 10, 2007 2:51 pm
Reply with quote

Hi,

prasanth_bs wrote:
lot of records are getting truncated(ie, lot of records which are there in input dataset are not present in output dataset after the sort).
Please post your complete sort control info and the sysout from the sort run.
Quote:
Is there any limiitation in DF sort for the number of records.
I think I can safely say no.

Awaiting your reply,

Bill
Back to top
View user's profile Send private message
prasanth_bs

New User


Joined: 08 Aug 2005
Posts: 9

PostPosted: Wed Jan 10, 2007 5:36 pm
Reply with quote

Actually we have a file which is having more than 3999996 records in a file in the first step we will do a sort SORT FIELDS=(225,1,PD,A,
164,1,PD,A,
165,1,PD,A,
166,5,PD,A
This will do the sort and writes the records to a dataset.

In the next step we uses the ice tool and our key fields and the sort card corresponding to icetool is
SELECT FROM(INFILE) TO(OUTFILE) ON(154,1,PD) ON(155,1,PD) -
ON(156,5,PD) ON(161,5,PD) ON(14,4,PD) FIRST
In this step we will be selecting the first records based on the sort condition in the sort card.The issue is with this step.

If i am taking 3000 records from the file and doing the sort i will be getting around 2000 records.But if I am taking the file as a whole and use the same the 2000 records got trimmed to 12 or 13 .But these 2000 should be there since the key corresponding to them are unique and they won't get filtered out due to that condition first in the sort .

please share your thoughts
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


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

PostPosted: Wed Jan 10, 2007 9:45 pm
Reply with quote

Quote:
But these 2000 should be there since the key corresponding to them are unique and they won't get filtered out due to that condition first in the sort .


Something doesn't add up here. If the keys are unique, then DFSORT's ICETOOL would keep all of the records. If you're not getting all of the records, then either the keys are not unique or there's something else you're not showing us.

SPLICE will sort the records on the ON fields, so your initial sort with other keys doesn't really accomplish or change anything.

In order to figure out what's going on, I'd need to start by seeing your complete JCL and control statements, and the DFSORT and ICETOOL messages you received. Feel free to e-mail me offline (yaeger@us.ibm.com) with that information. Please put "DFSORT" somewhere in your Subject line.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Pulling a fixed number of records fro... DB2 2
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
Search our Forums:

Back to Top