We are attempting to create a html on the server side and use C$COPY to place that html file in the users MY DOCUMENTS folder. Below is the code that we are attempting to use...it fails on the C$COPY each time we attempt it. If we hard code in the entire path to a folder the logic works fine, but when we use the Acu-Defined logic below for <MYDOCUMENTS> it starts failing. We have many remote users and many shared folders and we would like to just default this file to the users documents folder instead of having to pick a share to use.
Does anyone have any clues how this can be done or what the issue might be?
PERFORM Acu-Report1-Print-ToFile.
MOVE ZEROS TO WS-ERROR.
MOVE SPACES TO WS-STRING.
STRING "@[DISPLAY]:<MYDOCUMENTS>\\Test.html"
DELIMITED BY SIZE
INTO WS-STRING.
CALL "C$COPY" USING
"/u/acudir/dataWRK/Test.html"
WS-STRING
GIVING WS-ERROR.
CALL "C$DELETE" USING
"/u/acudir/dataWRK/Test.html"
GIVING WS-ERROR.
Call "C$SYSTEM" Using
"EXPLORER <MYDOCUMENTS>\\Test.html", 129.



