C
Christopher Aide
Hi all,
we are running a couple of batch files, that start cobol-programs (cobol
= an old programing language). If the cobol program has a problem, it
stops (closing the cobol window) and presents "errorlevel 1" or
"errorlevel 255" to the batch file. The batch file then takes
appropriate actions.
If the program runs through without error, „errorlevel 0“ is presented
to the batch file, ... all just as it should be!!
Now our problem:
When running the same batch-file on our Win2k-TerminalServer, the return
value of the very same cobol-program is always „errorlevel 0“, even if
the cobol program had to exit because of an error!! This of course
results in our batch files not working correctly!
It would be nice to hear your thoughts on this subject!
Thanks in advance
Chris
we are running a couple of batch files, that start cobol-programs (cobol
= an old programing language). If the cobol program has a problem, it
stops (closing the cobol window) and presents "errorlevel 1" or
"errorlevel 255" to the batch file. The batch file then takes
appropriate actions.
If the program runs through without error, „errorlevel 0“ is presented
to the batch file, ... all just as it should be!!
Now our problem:
When running the same batch-file on our Win2k-TerminalServer, the return
value of the very same cobol-program is always „errorlevel 0“, even if
the cobol program had to exit because of an error!! This of course
results in our batch files not working correctly!
It would be nice to hear your thoughts on this subject!
Thanks in advance
Chris