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 

syncsort partial records copy vs full record

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


Joined: 24 Mar 2006
Posts: 32
Topics: 16

PostPosted: Sat Mar 27, 2010 9:43 pm    Post subject: syncsort partial records copy vs full record Reply with quote

Is there any performance difference if am copying the full record or a portion of the record.
My requirement is to extract a particular record types from a huge master file ,then read the record in cobol programs,but i need only few fields of the records .
My peers here suggest to copy the full record as sort will be faster in that case and let the cobol program read the full records .
But i feel that since of the 28793 record , only a 100 byte is relevant to cobol program, should be copy only the 100??

Can anyone please throw some light how exaclty syncsort works...and help me with this problem??
Back to top
View user's profile Send private message Send e-mail
papadi
Supermod


Joined: 20 Oct 2009
Posts: 594
Topics: 1

PostPosted: Sat Mar 27, 2010 10:16 pm    Post subject: Reply with quote

How many records will be selected from the input file?

Quote:
My peers here suggest to copy the full record as sort will be faster in that case
Suggest they explain why they believe this. . .The process will use more space for the output and most likely run longer if the full-size records are written when only 100 bytes would be needed.

Quote:
Can anyone please throw some light how exaclty syncsort works...
Unless there is something i misunderstand, this has nothing to do with Syncsort. It is simply a matter of whether writing 28,793 byte records takes more resources than writing the same number of 100 byte records.
_________________
All the best,

di
Back to top
View user's profile Send private message
nishantrk
Beginner


Joined: 24 Mar 2006
Posts: 32
Topics: 16

PostPosted: Sun Mar 28, 2010 4:22 pm    Post subject: Reply with quote

Quote:
Suggest they explain why they believe this. . .The process will use more space for the output and most likely run longer if the full-size records are written when only 100 bytes would be needed.


Actually it would better ,if i can justify that copying partial records is better than actually copying the full records with some documentation ,as its me who is suggesting this change in there design..
Can you help here...I tried google search.. couldn't find anything relevant there
Back to top
View user's profile Send private message Send e-mail
papadi
Supermod


Joined: 20 Oct 2009
Posts: 594
Topics: 1

PostPosted: Sun Mar 28, 2010 5:04 pm    Post subject: Reply with quote

Run a simple experiment. . .

Write 10 million 28793-byte records (287,930,000,000 total bytes) and 10 million 100-bytes records (1,000,000,000). A billion bytes is more than just a few, but nothing to compare against 287 billion.

Compare the space used and the time it takes. . . This will be more dramatic than just showing the calculations Smile

It may be difficult to find what you are looking for via a search because it is something most people would realize intuitively.
_________________
All the best,

di
Back to top
View user's profile Send private message
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