Search on the error message to find out what different instances can cause this to happen. Is this a straight pull from source to your flat file? Are you absolutely sure that this column is not null in source. Put a null check on that column. Something like if ISNULL(in.TYPE_ID) then "N...
There are so many functions that achieve similar tasks. I can use ICONV/OCONV and FMT function to format a string. Which one to use is simple the developers choice. You were getting problems with that function, I advised to use a macro that achieves the same functionality. If it works, well and good...
Maybe not.
Maybe a student.
On a serious note, I will definately let you know Kim once I am done with my current engagement. Thanks for looking out.
Regards,
If this were server then you would see a considerable amount of difference, but px sorting is pretty sleek. As Ray noted, sorting and agregations are still being done and hence your results.