Sort error code 512

Hi Friends,

I am back with small issue which i tried thinking but could not get much!!!!

issue here is..i m using kind of extraction query using perl code in that i do sort with few number of csv files. each of them will be around 50 to 100 M size.

sometime i get following error message and the extraction process getting terminated because of that.

its happening very frequently.

2010/09/22 01:33:39 | ERROR 512 : Could not sort 200469335_999999.csv successfully

Thanks
Althaf

please post the block of Perl code that is getting the error.