[Migrated content. Thread originally posted on 19 October 2004]
I have a sequence of cobol programs that should be run sequentially ( PROG1 PROG2 & PROG3 ). So I put into a .bat filewrun32.exe PROG1
wrun32.exe PROG2
wrun32.exe PROG3
But they all run 'simultaneously'. Is there any way to make execution of the .bat file wait until the programs issue their STOP RUNs before continuing?
Secondly, if I issue a STOP RUN with a return code value, how can I test that value in the .bat file? Or do I need a workround ?
Sorry if my problem seems duller than most, but Im still stuck on the basics.