Joined: 07 Jan 2003 Posts: 1056 Topics: 91 Location: The Blue Planet
Posted: Mon Jun 21, 2004 12:40 am Post subject: Sort Vs ISRSUPC (3.13) Compare
Hi,
I found something very interesting in Sort. I was trying to compare two huge files (each containing 2.5 Million records) using 3.13 (ISRSUPC- Batch) compare. My job ran for 47 minutes (CPU Time was 00:12:12:36).
Later I compared the same files using SORT (SYNCTOOL).
The input files are of VB & LRECL=541. I included a constant at the beginning of the file @ Position 5 (after RDW). The fields that need to be masked was excluded from the SORT criteria.
Surprisingly the SORT solution completed in just 2 Mins 27 seconds with CPU time - 00:00:21:21.
Questions:
1. Why is so much difference b/w Sort and ISRSUPC as far as the runtime or CPU Utilization? Could someone explain me the pros & cons between these 2 solutions. The disadvantage that I see in SORT is the amount of storage required by Temp. datasets (which is going to be only for a short period though).
I think everything that is done via ISRSUPC can be done in SORT also. Please confirm.
2. As mentioned above, I am working with VB files. My above solution with convert the VB files to FB while I create the TEMP files (while adding the constant char '1' / '2'). Is there any way to include a new column inside a VB dataset without changing it to FB ?
Thanks in advance for your help and support.
Phantom.
Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
Posted: Mon Jun 21, 2004 5:07 am Post subject:
Phantom,
Sort routines use highly optimized I/O routines, and hence the Sort solution would use less CPU and EXCP's than SuperC/CE. You can do more with SORT than with SuperC/CE.
You can add a constant at the beginning and you don't have to convert it to FB file. just specify the starting position (here 5). You might run into a problem if you have short records.
Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
Posted: Tue Jun 22, 2004 7:13 am Post subject:
Phantom,
Sort is a powerful tool, when compared to SuperC/CE in sense that it allows to format the records(change,reformat packed decimal values...) and write out to different files. And superce has a limitation of output listing dataset which if I remember correctly is 207 only bytes.
Joined: 07 Jan 2003 Posts: 1056 Topics: 91 Location: The Blue Planet
Posted: Tue Jun 22, 2004 10:10 am Post subject:
Oh okay. Now I got what you were trying to say kolusu. And as you said superce has a limitation of output listing (176 columns of the input dataset - total length of 202 bytes).
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