Re: 4GL question
Posted in 2000
"Carlson@WHSmith" wrote: > > For all the 4GL gurus out there: > > HPUX 10.20 > IDS 7.30.uc7 > 4GL 7.20.ud6 > > I'm looking to return error codes from a 4GL program to the shell. > While I can trap and return an error code using "exit program", is there > a way to trap an error code if the program was killed, crashed, etc.??? As I remember you can do this with a shell wrapper and a carefully coded trap command. Interrupts are just that and will therefore never reach your EXIT PROGRAM. However, they are (or were) propagated back to the shell script. Don't trap too much otherwise the shell script will lock up. Sorry I don't have any examples. Cheers, -- Mark. +----------------------------------------------------------+-----------+ | Mark D. Stock mailto:mdstock@mydas.freeserve.co.uk |//////// /| | http://www.informix.com http://www.informixhandbook.com |///// / //| | http://www.iiug.org +-----------------------------------+//// / ///| | |What year 2000 bug? year 2000 bug? |/// / ////| | |year 2000 bug? year 2000 bug? year |// / /////| | |2000 bug? year 2000 bug? year 1900 |/ ////////| +----------------------+-----------------------------------+-----------+