Off the top of my head:
I would have your server-side script return the result to a field in a table dedicated for this purpose.
In the script that runs the PSOS step, put an Install OnTimer Script step immediately after the PSOS script step that will run a script that checks for a value in this field. When the value exists, you can do the rest of your processing and clear out the timer.
Be sure to clear this field at the beginning of the whole routine.
I hope this helps.
off-course that is what I will be doing, thanks for the pointer. The thing is that nowhere in the documentation of the [ perform script on server] scriptstep is mentioned that it will not return a result if wit on completion is off. Or I overlooked it. Anyway thans again.
I'm glad I could help. Just checked the FM 15 online help. From the entry for Perform Script on Server: "Wait for completion must be selected to pass a script result or error code from the host to the client." Just an oversight.