Hi
I think it is best to contact technical support for this. While you say it runs under some circumstances but not others, one has to figure out the differences between the two, like SAS version for client and server, session encoding for client and server, etc.
You can run the following on the client as well as on the server to get information on version and session encoding.
%put NOTE: &=sysvlong &=sysscpl;
proc options group=languagecontrol;
run;
Bruno