My appologies for repeating myself..I am reposting this with a better subject line.
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...
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...
I just want to rule out unix as the cause... is "echo $?"
a common unix command? (I know that echo is, but what does $? mean?
Sorry if these questions seem stupid..I don't have much experience with unix and cobol together.
Thanks
KB
Daniel,
I have tried that already, I am fairly certain it is not a unix return code..
It is not in man. I just wondered if it was a common unix command or if it is unique to the compiler?
Thanks for your input though!
This is a simplification of my recent question:
I really want to know what is "echo $?" returning.
I get a 0 when all is well, but I have seen a 1, or a 12 also. They do not seem to be unix return codes.
I am executing a microfocus cobol program that has been compiled on Unix with the...
I am running Micro focus cobol on Unix. It is compiled with PRO Cobol. The program runs fine..but
when I do an echo $? I get a return code of 1, sometimes 12. I have looked in the error.h file but the return code descriptions do not make sense for the type of program I am running. Im using...
I have written a program that assembles data and sends it to an HP laserjet printer for printing. I can get it to work on a Windows platform using ASSIGN 'Printername'.
However, I am not sure how to do this when I run it on the Unix environment. If I use ASSIGN 'Printername' , I get the...
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.