Anders,
I had been looking at the DetailPrint output, but the command was too long to fit in the window. I have now implemented the DumpLog function and reviewed things in the log file it creates. In there I found that the value of $GEMCMD ends in a newline...
I have now implemented the
Trim function and things are now working they way I want.
Thanks again for putting me on the right track.
Marc.