----- Original Message -----
From: "Landin, Mark" <[log in to unmask]>
To: <[log in to unmask]>
Sent: Friday, November 11, 2011 06:37 AM
Subject: Re: [HP9000-L] Aborting an MF Cobol/2 program.
Don't know directly, but is there a function that can set an OS variable
which you could then interrogate in your script?
Only MPE has OS "global" variables that can be changed by child processes.
As far as I know.
It's likely something unique to MF/Cobol on how to do it.
Similar to getting runtime parameters.
You might try setting a value in RETURN-CODE
MOVE 2 TO RETURN-CODE.
or
EXIT PROGRAM GIVING 2
EXIT PROGRAM RETURNING 2
GOBACK [GIVING|RETURNING] 2
STOP RUN [GIVING|RETURNING] 2
Also look up these options in the manuals.
Sorry - I'm not an expert, just somewhat experienced in MF and reading their
manuals.
Keven Miller