Hi everyone,
I am having a problem with a cobol program issuing commands to Unix.
Here are the commands in the cobol program:
CALL "SYSTEM" USING 'cp /mydir/MYFILE1 MYFILE2'
CALL "SYSTEM" USING 'lp -d myprinter_2 /mydir/FILE.TXT'
The cobol program then returns this error:
lp: can't access file "/mydir/FILE.TXTydir/MYFILE2'"
This indicates to me that the first CALL to "SYSTEM"
is being concatentated with the second CALL to "SYSTEM'.
Is there a way to clear the first CALL after it has been performed?
Thanks for any suggestions.
KRICKB
I am having a problem with a cobol program issuing commands to Unix.
Here are the commands in the cobol program:
CALL "SYSTEM" USING 'cp /mydir/MYFILE1 MYFILE2'
CALL "SYSTEM" USING 'lp -d myprinter_2 /mydir/FILE.TXT'
The cobol program then returns this error:
lp: can't access file "/mydir/FILE.TXTydir/MYFILE2'"
This indicates to me that the first CALL to "SYSTEM"
is being concatentated with the second CALL to "SYSTEM'.
Is there a way to clear the first CALL after it has been performed?
Thanks for any suggestions.
KRICKB