MAXL Script - How to pass $1 and $2
Hello,
I would like to have a MAXL Script to update the substitution variables in Hyperion Planning, but I don't want to hardcode them in the script.
I was thinking in having a file, so the customer will update the file and run a batch script.
How can I do this? How can I pass $1 and $2?
My MAXL Script:
set ApplicationName = 'XXX';
set SpoolFile = '/fcaststg/logs/SetSubstitutionVariable.log';
login admin identified by password;
iferror "ErrorHandler" ;
spool on to $SpoolFile;
iferror “ErrorHandler” ;
/* Setting the substitution variable */
alter application XXX set variable "$1" "$2";
iferror "ErrorHandler" ;
spool off;
Logout;
exit 0;
define label "ErrorHandler" ;