WORKING-STORAGE SECTION.
01 MY-RUN-COMMAND.
10 FILLER PIC X(3) VALUE "cp ".
10 MY-FROM-FILENAME PIC X(30).
10 FILLER PIC X VALUE " ".
10 MY-TO-FILENAME PIC X(30).
10 FILLER PIC X VALUE X"00".
PROCEDURE DIVISION.
MOVE "filea" TO MY-FROM-FILENAME.
MOVE "filea.bak" TO MY-TO-FILENAME.
CALL "SYSTEM" USING MY-RUN-COMMAND.
call "SYSTEM" USING MY-RUN-COMMAND RETURNING FOO
Then test the return code from the call to make sure things worked. [sig]<p> Glen Colbert<br><a href=mailto: gcolbert@RAG_American.com> gcolbert@RAG_American.com</a><br><a href= > </a><br> [/sig]
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.