Thank you for supporting the Cloud Customer Connect Community in 2024. It's a gift to work with you!

Look back
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

MAXL return code in shell script

edited Aug 2, 2018 2:36AM in Essbase 6 comments

Summary

MAXL return code in shell script

Content

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;

#######################

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!