From the ksh prompt I can enter the following to successfully change the prompt:
PS1="$(hostname) $ "
When I try this in a script it doesn't work and the prompt stays on "$". I've tried exporting it but that didn't seem to work either. I'm using UWIN if that's any help.