MAXL return code in shell script
Summary
MAXL return code in shell scriptContent
Hi All,
I am working on a script to capture error from Maxl. I am not getting the error code in the calling shell script.
Issue: I am not getting EXIT code 101 even when the MaxL is failing at Login. Please suggest
Below is the MaxL script.
#######################
login $1 $2 on $3;
IFERROR 'ERRLogin';
spool stderr on to "a.txt";
import database
IFERROR 'ERRLODAD';
execute calculation
IFERROR 'ERRAGG';
logout;
EXIT 0;
define label 'ERRLogin';
EXIT 101;
logout;
define label 'ERRLODAD';
logout;
EXIT 103;
define label 'ERRAGG';
logout;
EXIT 104;
#######################
0