Translating with DrWatson… this can take a few seconds the first time.
This is a genuine, complex translation. DrWatson protects commands, error codes, and log output while naturally translating the surrounding text. It’s translated once and saved.
Art S. Kagel — — source: Informix-list mailing list archive (1991-1998)
Dieter Winkler wrote:
>
> I've got a problem with return values from the unix shell (Siemens Nixdorf
> Unix - German product).
>
> If I call a shell script with the RUN-command in 4gl i never got the right
> return value. Can anyone help me to solve this problem?
The return value is multiplied by 0x100 or shifted left 8bits. Just:
run "COMMAND" returning ret
let ret = ret / 256
BTW return codes > 255 will be truncated since only 16bits are returned.
Art S. Kagel
Your privacy choices
We use strictly necessary cookies to make this site work. With your
consent we’d also use optional cookies for analytics and marketing. You can accept all,
reject all, or choose. Read our Cookie Policy.