Essbase Reports - MAXL Scripts
<p>I can not find the MAXL script command to execute an EssbaseReport.</p><p> </p><p>In Esscmd, it is RunRept. Any help would be appreciated.</p><p> </p><p>Jamie</p>
Just an example based on the Sample:Basic DB .... (this is for Windows, I guess the syntax for UNIX is slightly different, refer DBAG for exact details).<BR><BR>export database sample.basic using report_file 'Essbase\\App\\Sample\\Basic\\Bottom.rep' to data_file 'D:\\Essbase\\Reports\TestReport.rpt';<BR>
Similar Messages
-
Essbase Studio MAXL scripts not running
Hi All,
I am currently working on Essbase Studio 11.1.2.0. with Windows 2007 sp1 with 64 bit operating system . I have my datasources set to oracle database.
I am trying to create an outline through maxl scripts. My essbase services etc are running fine.
Steps of execution with the command are given below:
1. Click on the Start button, click on run, enter cmd
2. create the following maxl script named as ocreate.scr using notepad and save it. The login and password are correctly defined.
======================================================================================================
deploy outline from model 'BestModel' in cube schema '\Mydirect\Cube Schemas\Best' login 'XXXXXXX' identified by 'XXXXXX' on host 'UDANASESSBA1' to application 'test' database 'test' using connection 'Essbase_QA_Connection' keep 100000 errors on error ignore dataload write to default;
exit;
========================================================================================================
3. Run the above script as :
Essmsh ocreate.scr
On running the above script I get the following error:
===================================================
Essmsh.exe has stopped working
====================================================
Can anyone help here.
Thanks in advance
BkI believe there was an issue with deploying studio using 64bit Maxl, the workaround was to deploy using 32bit Maxl.
More information available in Oracle Support - "Error "essmsh.exe has stopped working" with MAXL Deploy Script Generated from Essbase Studio on Windows 64-bit [ID 1382589.1]"
Cheers
John
http://john-goodwin.blogspot.com/ -
Error executing essbase report script using maxl
Hi,
V 11.1.2.1 (64 bit) on windows
An essbase report script errors when it is run from maxl. When I run it directly in maxl the error is
Error - 1030205 - Client directory does not exisit: ...EssbaserServer\<instance>\client
When I run it within EAS the error is
Client directory does not exisit: EPMSystem11R1/common/EssbaseRTC-64/11.1.2.0client
Unexpected essbase error 1030205
The client is installed but the folder locations do not exist. There is a calc script which does a data export which works fine. The essbase report can be manually executed without a problem. This worked fine in 9.3.1.
Here is the script (without actual names)
export database 'app'.'database' using report_file 'AReport' to data_file 'c:\\Output.txt';
I would appreciate any help. I have looked at the knowledge base and can't find anything relevant.
Thanks in advance,
Nathan
I would appreciateHi,
The issue is now resolved.
The client folder must be created where the EAS service is, not Essbase. Once this was done the report script could not be found. In discussion over the phone with Oracle we did some testing, as they use a non distributed environment. If you use 'using report file' you need to specify the path to the report file i.e.
D:\Oracle\Middleware\user_projects\epmsystem\EssbaseServer\<instance>\app\<app name>\<database>\report.rep'
The .rep must also be included.
If you use 'using server report file' you only need to specify the report name, without the extension, and the data file path. You specify the path as normal i.e. D:\nathan.txt but you can get away with simply a file name such as 'nathan.txt'. In a distributed environment this exports to the server where the EAS service is to
<drive>:\Oracle\Middleware\user_projects\domains\EPMSystem
When Oracle support did this it went to the Essbase bin folder as it was a non distributable environment.
The subtle differences between 9.3.1 and 11.1.2.1......
Thanks to all those who contributed.
Nathan -
Maxl Script running Issue in Essbase 11.1.2.2
Hi All,
We have a Maxl Script which takes Level 0 Backup of the Database. We have migrated the apps to the new server 11.1.2.2 and this script is not running in the new server but it works fine in the Old Server.We have the code like this in the script
REM $1 = USERNAME
REM $2 = PASSWORD
REM $3 = servername
REM $4 = BSOAppName = RPSBSO
REM $5 = BSODB_Name = RPSBSOD
REM $6 = ASOAppName = RPSASO
REM $7 = ASODB_Name = RPSASOD
essmsh C:\Hyperion\Automation\MAXL\Backup_BSO.msh Username password gvw3086-v.atlanta.hp.com RPSBSO RPSBSOD RPSASO RPSASOD
When i run the .bat script an Fatal Error is shown under the above line saying
MSH Fatal Error: Error Initializing localization module.
I have changed all the path locations,server names etc according to the new environment in the script but the script is displaying error like above. Can any one help me on this.
Regards,
Naveen972698 wrote:
Hi John Thanks for your post.
I would like to give some more information like this is the script named BU_BSO_2.bat which is used for taking backup of individual application RPSBSO, and it calls Backup_BSO.msh script which is internally called in BU_SO_2.bat file as given below the command. What we do is we just run this BU_BSO_2.bat batch file where it executes everything and places the backup in given path in the script. But actually its giving error in executing only the given below line
essmsh C:\Hyperion\Automation\MAXL\Backup_BSO.msh Username password gvw3086-v.atlanta.hp.com RPSBSO RPSBSOD RPSASO RPSASOD
Error shown : MSH Fatal Error: Error Initializing localization module
And i went through your doc but they are the server specific paths which we are not using in this script and this script runs fine in 11.1.1.
Let me know if i can provide any more information.
Regards,
Naveen
Try updating
essmsh C:\Hyperion\Automation\MAXL\Backup_BSO.msh Username password gvw3086-v.atlanta.hp.com RPSBSO RPSBSOD RPSASO RPSASOD
to
startMaxl.bat C:\Hyperion\Automation\MAXL\Backup_BSO.msh Username password gvw3086-v.atlanta.hp.com RPSBSO RPSBSOD RPSASO RPSASOD
If the location of startMaxl is not in the windows path variable you will need to either update the path variable or put the path in the script e.g.
C:\Oracle\Middleware\user_projects\epmsystem1\EssbaseServer\essbaseserver1\bin\startMaxl.bat
or C:\Oracle\Middleware\EPMSystem11R1\products\Essbase\EssbaseClient\bin\startMaxl.cmd
Alternatively edit startMaxl and take the variable information out of it and put it in your script then you will be able to use essmsh.
Cheers
John
http://john-goodwin.blogspot.com/ -
Essbase report script match pattern on alias
report scriptHi,
I need some help on essbase report script. I have been racking my brain trying to figure out how to use the essbase report script command "<MATCH" so that I can match for a pattern on the alias name as opposed to the member name. I have searched the Internet with no luck. Maybe someone in this community knows how to do this. If you can reply with a specific example that would help me out as I am very visual.
Thanks in advance.You can use <REPALIAS, e.g., for Sample.Basic:
<REPALIAS "Product"
<ROW ("Product")
<MATCH("Product", "Diet*"
Diet Cola
(24,761)
Diet Root Beer 25,185,158,741
Diet Cream
23,703,677,612
Diet Cola
(24,761)
Diet Root Beer 25,185,158,741
Diet Cream
23,703,677,612
Diet Drinks
48,888,811,592
Using <OUTALT on its own (confusingly, at least as I read the documentation) continues selecting by alias, but displays member name:
<OUTALT
<ROW ("Product")
<MATCH("Product", "Diet*"
100-20
(24,761)
200-20
25,185,158,741
300-30
23,703,677,612
100-20
(24,761)
200-20
25,185,158,741
300-30
23,703,677,612
Diet
48,888,811,592
Without either, the MATCH only looks at member names:
<ROW ("Product")
<MATCH("Product", "Diet*"
Diet
48,888,811,592 -
RE: Essbase Report Scripts
Hi all
i really thanks for your support ...
Here is my question
I need a Essbase report script which in essence is a basic query where we would say all lev 0 cost centers excluding the some of the rollup points.
i.e i need to delete some level 0 members using Rule script and we are in 6.5.4 version please help me out in this situation
Please i really need this script or else please let me know is this possible using report scripts..
Please ...
Thanks
jai
Edited by: user9314481 on Mar 11, 2010 5:59 AMHi all
I am not able to find a solution for this issue , please help me out...
I need a Essbase report script which in essence is a basic query where we would say all lev 0 cost centers excluding the some of the rollup points.
i.e i need to delete some level 0 members using Rule script because my level 0 members are combination of product 'A ' and Product 'B' but now my users are interested in Product 'B' data and we are in 6.5.4 version please help me out in this situation
Please i really need this script or else please let me know is this possible using report scripts.. -
MaxL script deploy essbase studio cube
Hi There,
I am testing my MaxL script deploying cube from essbase studio, here is result from my cmd windows:
BPM connect status: success
BPM maxL deployment ... succeeded with warning.
How do I find out the detail about the warning? I assume it is essbase studio log at C:\Hyperion\logs\esbstudio
But I did not see any warning message.
ThanksThanks John and Glenn, I just check my app log, the warning I found is:
Warning(1013254)
Hybrid Analysis spanning cannot be enabled on database [test] in application [test]. Check if the database has Hybrid Analysis and if span into relational source is enabled.
I am not sure I understand this. -
Dropping a essbase cube member through Maxl Script
Hi,
Can anybody suggest, how I can delete the the member of a cube through MaxL Script.
Is this achievable ??I think what you're trying to do (delete a member from a dimension) can be done in MaxL through a data load rule and an appropriate dimension load file.
See: http://download.oracle.com/docs/cd/E10530_01/doc/epm.931/html_eashelp/dbdbstdb.htm for more information re "remove unspecified".
Also see http://download.oracle.com/docs/cd/E10530_01/doc/epm.931/html_esb_techref/maxl/ddl/statements/imp_dims.htm for the MaxL statement "import dimensions".
Lastly, see: http://www.network54.com/Forum/58296/thread/1225372045/Deleting+Members+within+a+Member+Name+in+the+outline+not+manually+but+automatically+- for a fairly indepth discussion of this issue.
Regards,
Cameron Lackpour -
Error 1030001 in MAXL Script "BuildDimFile"
I have a MAXL script that successfully builds two of my dimensions using the SQL interface from Oracle. What's strange is, even though the script works, mid-way through MAXL log file, the following error appears: 9 - Essbase error encountered: [BuildDimFile:'test'] [1030001]. Then at the end of the file, it states: 51 - MaxL execution failed. The line in the script:import database '_test'.'_TESTKKU' dimensions connect as 'test' identified by 'test' using server rules_file 'D_Region' on error write to 'D_Region.err';Anyone have any idea why MAXL is reporting failure, when the script is actually working?
I've used the error handling in MAXL and have found that it gets bettter with every release. It still doesn't trap all errors, but it does catch most fatal errors.<BR><BR>You will want to test it in the particular script that you are using to ensure it does the job you need. When MAXL first came out, the error trapping was much less effective than with ESSCMD. Now we're working with 7.1.3 and find that it catches the things we really need to catch.<BR>
-
Please give the maxl scripts for export data in ASO
i think we have to use some report file ,please give the report file script and give the full statement of maxl to export data
There's a couple of ways to do this.
What version of Essbase are you using?
Do you want all the data exported or only a subset?
Brian Chow -
Looping in Maxl Script - To load multiple files
Hi,
I am using Essbase 11.1.2 on UNIX.
I have maxl script which will load 20 to 30 extraction file. Number is inconsistent. Extraction files will grow each month. Extraction files are with same name with the suffix _1,_2...(2 Gb thing). My previous script was hard coded to load file by file to load up to 50 files. I am trying to remove these hard coded lines, and try to loop the “load” statement. I have tried several ways using while loop in shell to call maxl /msh , but no luck. Any ideas?
ThanksA very similar question was asked recently (but for Windows): Re: Maxl to import datafolders
What have you tried? Maybe someone here can show you what's wrong with your script.
The approach I usually take with this type of problem is to write a script that dynamically builds one single MaxL script with the appropriate number of files, rather than calling MaxL multiple times.
I am generally too ashamed to share my Unix scripts, but at it's most basic, non-error-trapped, probably-inadvisable-and-full-of-holes-for-all-kinds-of-reasons, you could include something like this to build your load script:
ls filename*.txt | awk {'print "import database etc... "$1" ...on error etc;"'} > scriptname.mshSince you can nest MaxL scripts, you can then reference scriptname.msh from a static 'master' script which handles login / spool on / spool off / logout as appropriate. See http://download.oracle.com/docs/cd/E17236_01/epm.1112/esb_tech_ref/maxl_commands_nesting.html or Cameron's 2009 K'scope presentation: http://odtug.com/apex/f?p=500:575:526121996615242::NO::P575_CONTENT_ID:4605 -
Weird problem using "Login" in MaxL script
Hi there
I have created a MaxL script for loading som data into an Essbase. The script you can see below.
login 'user' 'password' on 'nkm18k14';
import database 'realtest'.'Loadtest'
data from text data_file '\\nkm18k00\Planning\Loaddata\lonbud.txt'
using server rules_file 'LonBLoad'
on error write to '\\nkm18k00\Planning\Errorlogs\realtest.txt';
When I try to execute it, as it is i get the following error "(3) Syntax error near ['$'], which im guessin is line 3, right?
When I remove line 1 (the login statement), the script runs just fine. What is goin on, any ideas?
I as a user have write acces to the network locations specified, could it be that the essbase uses som kind of system user that doesn't have acces to the network location?
Any valuable input will be appreciated.
Regards, JacobIt's true that they are not "needed" from a security approach, but from a maintenance approach you still end up having to touch a large number of scripts if you store the connection details in them.
As a system user, you don't even have to change the password -- but if you have someone leave the company you may just want to.
Either way, I would never want to hard code connectivity details inside dozens of scripts when I can keep it in a single place.
Here is the MXL_Shell file for Windows -- you can obtain the SendEmail.exe from multiple places, but the syntax should be validated.
The location of the scripts, log files, and batch items can of course be modified to your liking as well...
The Errors that are ignored are stored in a file called "IGNORED.TXT" in the Batch directory (see below for what I ignore).
@echo off
REM ================================================================
REM MXL_Shell.cmd - Wrapper to call EssMsh (MXL) scripts
REM ----------------------------------------------------------------
REM Author: Doug Bliss
REM Initial QC: 5/21/2005
REM ----------------------------------------------------------------
REM Script to Execute should be base name (without extension)
REM Script should exist in the ..\Scripts directory
REM Both StdOut and StdErr are redirected to ..\Logs\<Script>.log
REM Call activity is logged to ..\Logs\Daily_ddmmyy.log
REM Log file is appended to ..\Logs\<Script>.hst at finish
REM Log file is processed for "Error" tokens to determine if
REM the result was successful or not
REM Notifications are taken from comment blocks in the script:
REM /* Notifications:
REM ONSUCCESS [email protected]
REM ONERR [email protected]
REM */
REM Localization details: Update the variables set immediately below (typically SRCPATH and EMAIL*)
REM ================================================================
SET SRCPATH=C:\Automation
SET EMAILDOM=<yourcompany.com>
SET EMAILRELAY=<relay>.%EMAILDOM%
SET DEVBOX=<devboxname>
SET IGNORE=%SRCPATH%\Batch\Ignored.txt
SET MXLFILE=%SRCPATH%\Scripts\%1.mxl
SET LOGPATH=%SRCPATH%\Logs
SET LOGFILE=%LOGPATH%\%1.log
SET ERRFILE=%LOGPATH%\%1.err
SET HSTFILE=%LOGPATH%\%1.hst
SET DAYFILE=%LOGPATH%\Daily_%date:~4,2%%date:~7,2%%date:~10,4%.log
REM ################################## Step 1: Sanity Checks
IF "%1"=="" EXIT /B 1
IF NOT EXIST %MXLFILE% EXIT /B 2
REM ################################## Step 2: Initialize Log entries
IF NOT EXIST %LOGPATH%\. MKDIR %LOGPATH% >nul
IF EXIST %ERRFILE% MOVE /Y %ERRFILE% %SRCPATH%\Logs\%1.bak.err >nul
IF EXIST %LOGFILE% MOVE /Y %LOGFILE% %SRCPATH%\Logs\%1.bak.log >nul
REM ################################## Step 3: Call the Script
ECHO %time% -- Calling EssMsh Script: %1.mxl %2 %3 %4 %5 %6 %7 %8 %9 >>%DAYFILE%
ECHO ============================== ESSBASE SESSION LOG >%LOGFILE%
ECHO Log Opened: %date% %time% >>%LOGFILE%
CALL User.cmd
essmsh.exe -s %COMPUTERNAME% -u %UID% -p %PWD% %MXLFILE% "%2" "%3" "%4" "%5" "%6" "%7" "%8" "%9" >>%LOGFILE% 2>&1
REM ################################## Step 4: Post Processing
REM #### Daily Log Entry (return call)
ECHO %time% -- Returned from Maxl Script: %1.mxl >>%DAYFILE%
ECHO Log Closed: %date% %time% >>%LOGFILE%
ECHO ============================== END OF SESSION >>%LOGFILE%
REM #### Process Error entries and filter via Ignored.txt file
TYPE %LOGFILE% | FIND "ERROR" >%ERRFILE%
FOR /f "tokens=1" %%a in (%IGNORE%) DO TYPE %ERRFILE% | FIND /V "%%a" >%ERRFILE%
FOR %%a in (%ERRFILE%) DO SET /a ErrCount=%%~za >nul
IF '%COMPUTERNAME%'=='%DEVBOX%' (
SET TYPE=NON-Production
SET SVR=development
) ELSE (
SET TYPE=Production
SET SVR=production
IF %ErrCount% EQU 0 (
ERASE /Q %ERRFILE%
SET SUBJECT=Essbase %TYPE% Script Completed
SET MESSAGE=Maxl script '%1' has successfully completed on the %SVR% server.
SET ATTACH=
SET RESULT=SUCCESS
) ELSE (
REM ################################## ERROR Processing
SET SUBJECT=Essbase %TYPE% Script Error
SET MESSAGE=Errors were detected in Maxl script '%1', the job's log and error files are attached.
SET ATTACH=%LOGFILE% %ERRFILE%
SET RESULT=ERR
TYPE %MXLFILE% | FIND "ON%RESULT%" >Notify.tmp
FOR /f "tokens=2" %%a in (Notify.tmp) DO SendEmail -f %COMPUTERNAME%@%EMAILDOM% -t %%a -u "%SUBJECT%" -m "%MESSAGE%" -s %EMAILRELAY% -a %ATTACH%
ERASE /Q Notify.tmp
ECHO. >>%DAYFILE%
ECHO. >>%HSTFILE%
TYPE %LOGFILE% >>%HSTFILE%
:FIN
ECHO.
EXIT /B %ERRCOUNT%Here is my IGNORED.TXT file (only the code itself is used, the rest is for reference).
0000000 This file contains Essbase Error codes which should be ignored by ESS_Shell.cmd or MXL_Shell.cmd
1051083 This substitution variable does not exist.
1003029 Encountered formatting error in spreadsheet file [%s]
1090010 Error in File [%s] Which is a [%s] Spreadsheet
1051068 Database is not in archive read-only mode -
I'm having trouble with running a MAXL Script. I have a macro in Access that creates my load table. The last command in the macro is "essmsh loadcube.msh".The shell will open, but doesn't take input from the file. The file contents are:login user pswd on server;set message level all;import database Invstmnt.Invstmnt data from data_file 'C:\Hyperion\Essbase\Client\loadinv05.xls' using rules_file 'T:\App\Invstmnt\Invstmnt\Data05.rul' on error append to 'C:\Hyperion\Essbase\Client\errorinv.log';execute calculation 'SET MSG ERROR; CALC ALL;' on Invstmnt.Invstmnt;logout;exit;Is this incorrect??? These steps work fine when I key it into the shell.
I am making the assumption you want to update a substitution variable, not a 'global' variable. Symantecs of course as they are global, but hope I get you heading down the right path.
Yes, you'll need to use the Alter Database command. You must first drop the variable then add the variable you want.
ex:
alter database $4.$5 drop variable pyryear;
alter database $4.$5 add variable pyryear;
alter database $4.$5 set variable pyryear "FY07";
obviously this is a snipit of code I have from a MaxL automation with positional variables included, but this should have you heading in the proper direction. -
Auto-kick off MaxL script after Oracle GL data load?
Hi guys, this question will involve 2 different modules: Hyperion and Oracle GL.
My client has their accounting department updating Oracle GL on a daily basis. My end-user client would like to write a script to automatically kick off the existing MaxL script which is for our daily data load in Hyperion. Currently, the MaxL script is manually executed.
What's the best approach to build a connection for both modules to communicate with each other? Can we use a timer to trigger the run? If so, how?#1 External scheduler.
I've worked on Appworx and it has build a chain dependent task. There are many other external schedulers like Tivoli,....
#2 As Daniel pointed out you can use Windows scheduler.
For every successful GL load add a file to a folder which is accessible for your Essbase task.
COPY Nul C:\Hyperion\Scripts\Trigger\GL_Load_Finished.txt
Create another bat file which is scheduled to run on every 5 or 10 mins (this should start just after your GL Load scheduled task)
This is an example i've for a triggered Essbase job.
IF EXIST %BASE_DIR%\Trigger\Full_Build_Started.txt (
Echo "Full Build started"
) else (
IF EXIST %BASE_DIR%\Trigger\Custom_Build_Started.txt (
Echo "Custom Build started"
) else (
IF EXIST %BASE_DIR%\Trigger\Post_Build_Batch_Started.txt (
Echo "Post Build started"
) else (
IF EXIST %BASE_DIR%\Trigger\Start_Full_Build.txt (
Echo "Trigger found starting batch"
MOVE %BASE_DIR%\Trigger\Start_Batch.txt %BASE_DIR%\Trigger\Full_Build_Started.txt
call %BASE_DIR%\Scripts\Batch_Files\Monthly_Build_All_Cubes.bat
) else (
IF EXIST %BASE_DIR%\Trigger\Start_Custom_Build.txt (
Echo "Trigger found starting Custom batch"
MOVE %BASE_DIR%\Trigger\Start_Custom_Batch.txt %BASE_DIR%\Trigger\Custom_Build_Started.txt
call %BASE_DIR%\Scripts\Batch_Files\Monthly_Build_All_Cubes_Custom.bat
) else (
IF EXIST %BASE_DIR%\Trigger\Start_Post_Build_Batch.txt (
Echo "Trigger found starting Post Build batch"
MOVE %BASE_DIR%\Trigger\Start_Post_Build_Batch.txt %BASE_DIR%\Trigger\Post_Build_Batch_Started.txt
call %BASE_DIR%\Scripts\Batch_Files\Monthly_Post_Build_All_Cubes.bat
)So this bat file if it finds Start_Full_Build.txt in the trigger location, it'll rename that to Full_Build_Started.txt and will call the Full Build (likewise for custom and post build)
Regards
Celvin
http://www.orahyplabs.com -
Strange Character in Essbase Report
I generated an Essbase report using report script. I have suppressed colum heading, page heading, zero rows and missing rows. In the generated report there is a strange character at the beginning of every 65th row (). When opened in notepad it looks like the biology female symbol. I am guessing this is some kind of a page break character. It shows up in any application I use to open the .rpt file.Is there any way to supress this character?
I will be sending the resulting report to SAP. Will this character effect the way SAP will read member names in that row?Never mind. Foud out that SUPFEED works fine. The question about page break character affecting SAP is still open though.
Maybe you are looking for
-
Shared Services page does not open
Gurus, I have installed and configured EPM and I am able to log in to planning. However, when I click on "Administer Shared Services" from the Planning page, it gives kind of web page error? What could be the issue with it? Do I need to do anything i
-
How to attach multiple files in UTL_MAIL.SEND_ATTACH_VARCHAR2 method
Hi all , I had written a pl/sql where it will write multiple csvs i.e. a.csv,b.csv,c.csv,d.csv to a location using UTL_FILE to reports folder . How do i attach a.csv,b.csv,c.csv,d.csv into a single mail ?? UTL_MAIL.send_attach_raw (sender => '[email
-
.ttx file in UNIX/PLSQL
Hi All, Is it possible to generate .ttx file through shellscript/plsql procedure? Please help me in this. Thanks, Bopty Edited by: Bopty on Aug 29, 2012 3:36 PM
-
Running multiple commands in command prompt
Hi I am having the following scenario open command prompt open xilinx command prompt switch to xmd console run a set of commands print the final output to screen I am having the following doubts Can system exec.vi take multiple commands as standard i
-
Error in test connection: Connection refused to host: 172.22.100.77
Hi, I'm trying to connect B1if to a SBO DB in a different server that dosen't have B1if instaled. I'm getting this error: XCE001 Nested exception: java.rmi.RemoteException: com.sap.b1i.xcellerator.XcelleratorException: XCE001 Nested exception: java.r