whether sorting strings as numbers affects aggregator result

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
Maximus_Jack
Premium Member
Premium Member
Posts: 139
Joined: Fri Apr 11, 2008 1:02 pm

whether sorting strings as numbers affects aggregator result

Post by Maximus_Jack »

Hi
I don't have access to Datastage now, can anyone please help in giving some
clarity on this, i have a job as

input_seq_file --> aggregator --> output_seq_file

some string columns in the input file are sorted as numeric using the unix command before it gets processed in the aggregator, my question is whether
sorting strings as numbers in anyway affect the result of the aggregator,
the operation performed in aggregator are sum and first.

(my guess is, it should not affect :) )

thanks
MJ
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

"Affect" as in change the result? No. It would mostly just be a waste of time as the Aggregator would need to undo all that work and "sort" the data itself back as a string.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Maximus_Jack
Premium Member
Premium Member
Posts: 139
Joined: Fri Apr 11, 2008 1:02 pm

Post by Maximus_Jack »

craig, thanks for responding, I dont have much exposure in server stages,
its seems like the server aggregator needs the data to be sorted, i have now tried simulating the same scenario, i'm getting "row out of sequence" error, is it because the aggregator is getting non sorted data?? correct me if i'm wrong

and also did a bit of reading on this
http://www-01.ibm.com/support/docview.w ... wg21425707
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

It doesn't need it to be sorted but it will appreciate it. :wink:

However, if you tell it that it is sorted you best not be wrong which is what your "out of sequence" error is saying.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Maximus_Jack
Premium Member
Premium Member
Posts: 139
Joined: Fri Apr 11, 2008 1:02 pm

Post by Maximus_Jack »

thanks craig
Post Reply