RUN "fglgo *.4gi" RETURNING status
Posted in 1993
netters, can anyone explain why the RUN "some script" RETURNING status returns a status code that is 256 * (the exit code from 'some script'). we are running on a sun 690, version listed in the signature. the programs i used are: {mod1.4gl} database standard main define exit_code integer define exit_code2 integer run "$INFORMIXDIR/bin/fglgo mod2.4gi" returning exit_code let exit_code2 = exit_code / 256 display exit_code, exit_code2 call press_return() end main {mod2.4gl} database standard main define exit_code integer prompt "EXIT CODE = " for exit_code exit program (exit_code) end main ------------------------------------------------------------------------------ | . . Bob Baskett | ... ... Software Engineer, DBA | ..... ..... Business Systems Integration Group | .. ... .. Semiconductor Products Sector | . . . Mesa, AZ | | Motorola, Inc ------------------------------------------------------------------------------ Informix Versions: Online - 5.00.UC2 ISQL - 4.10.UD1 4GL-RDS- 4.10.UC1 ------------------------------------------------------------------------------