When creating calculation scripts, you must follow the guidelines for calculation script syntax and use the proper syntax for each calculation command and function.
“Developing Calculation Scripts” in the Oracle Essbase Database Administrator's Guide
Oracle Essbase Technical Reference