MaxL script with ODI

Hello, friends.

How to call the script MaxL thru ODI? I have to create the procedure, but what technology and what command can I use?

Thank you!

You can create a step using technology "Operating System" and then just put in the line of command for example

cmd/c/path_to_startmaxl/startMaxl /path_to_script/scriptname.mxl

who could be

cmd /c D:\Oracle\Middleware\EPMSystem11R1\products\Essbase\EssbaseClient\bin\startMaxl.cmd D:\MaxlScripts\login.mxl

See you soon

John
http://John-Goodwin.blogspot.com/

Tags: Business Intelligence

Similar Questions

  • pre-and post loading maxl script in ODI

    I try to call a maxl script in the ODI interface.

    I did the following chages in the properties of the target:

    PRE_LOAD_MAXL_SCRIPT D:\PLAN\Results\Scripts\ODIpreMaxl.mxl

    I got the folloing error message:

    org.apache.bsf.BSFException: exception of Jython:
    Traceback (most recent call changed):
    File "< string >", line 89, < module >
    at com.hyperion.odi.essbase.ODIEssbaseConnection.executeMaxl (unknown Source)

    at com.hyperion.odi.essbase.AbstractEssbaseWriter.beginLoad (unknown Source)

    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

    at java.lang.reflect.Method.invoke(Method.java:597)


    com.hyperion.odi.essbase.ODIEssbaseException: com.hyperion.odi.essbase.ODIEssbaseException: cannot run the program "essmsh": CreateProcess = 2 error, the system cannot find the file specified

    at org.apache.bsf.engines.jython.JythonEngine.exec(JythonEngine.java:146)
    at com.sunopsis.dwg.codeinterpretor.SnpScriptingInterpretor.execInBSFEngine(SnpScriptingInterpretor.java:346)
    at com.sunopsis.dwg.codeinterpretor.SnpScriptingInterpretor.exec(SnpScriptingInterpretor.java:170)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.scripting(SnpSessTaskSql.java:2457)
    at oracle.odi.runtime.agent.execution.cmd.ScriptingExecutor.execute(ScriptingExecutor.java:47)
    at oracle.odi.runtime.agent.execution.cmd.ScriptingExecutor.execute(ScriptingExecutor.java:1)
    at oracle.odi.runtime.agent.execution.TaskExecutionHandler.handleTask(TaskExecutionHandler.java:50)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.processTask(SnpSessTaskSql.java:2906)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java:2609)
    at com.sunopsis.dwg.dbobj.SnpSessStep.treatAttachedTasks(SnpSessStep.java:537)
    at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:453)
    at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:1740)
    to oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$ 2.doAction(StartSessRequestProcessor.java:338)
    at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:214)
    at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.doProcessStartSessTask(StartSessRequestProcessor.java:272)
    to oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$ 0 (StartSessRequestProcessor.java:263)
    to oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$ StartSessTask.doExecute (StartSessRequestProcessor.java:822)
    at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:123)
    to oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$ 2.run(DefaultAgentTaskExecutor.java:82)
    at java.lang.Thread.run(Thread.java:662)


    -Raj

    I think I know what the problem is, he's trying to start a Maxl session by running essmsh and he can't find it.
    If you go to the command line and type essmsh what happens?

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • MAXL script

    Hello

    Please nay one can me the maxl script

    We need display the filter with associated groups

    what filter is available for what group

    Thanks in advance


    Have you tried - display privilege

    See you soon

    John

  • MAXL script Unix

    Hi Experts,

    How to run the maxl script in linux in silent mode platform. I invoke the maxl via shell script script. If I run linux script display all the State of charge of dimension for any dimension.

    Thanks in advance.

    This is because as STDOUT (which you have redirected to dev/null with ' > ') and STDERR are separated from the flow. Error / warning messages are on STDERR.

    Try redirection with...

    >/dev/null 2>&1
    

    I'm not an expert in script shell by any means; suggest Googling "redirect STDERR STDOUT" to understand what is really happening.

    EDIT: Since the OP scored this post 'Correct' (Robert really had good complete answer first!) I have corrected the syntax to avoid confusion for anyone who comes here in the future via the search.

    Published by: TimG on October 17, 2012 05:55

  • How to operate only a calc script using ODI

    Hi John,.

    I would like to run only a calc script using ODi. Could if it you please let me know the process. Is it mentioned in your blog anywhere?

    Awaiting your response

    Thanks in advance
    Sravan

    The km - 'IKM SQL for Hyperion Essbase (DATA)' there is an option 'RUN_CALC_SCRIPT_ONLY', set to Yes and then enter the name of the calc script in "CALCULATION SCRIPT".
    It will take still a source and a target in the interface for it to run, but it will ignore the source and the target and just run the calc script, it is possible to customize the KM so it didn't need a source/target, but you should be fine with the method I proposed.

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • How to export Unicode application data to aid ESSMSH maxl script?

    Hello

    I have a problem with Chinese characters in a Unicode application.

    I am trying to export data from a Unicode application using the maxl script syntax:
    EXPORT of DATABASE ' ' Sales. " To the SERVER HELP fichier_journal sales 'Backup' OF DATA_FILE 'D:\Backup.txt ';

    1. I have run this MaxL script using the MaxL editor in the Administration Console. It returns the data with members in the Chinese characters correctly.
    2. I call this MaxL script from a script of commands using ESSMSH 'D:\Backup.mxl '. It returns the data but members in Chinese character is displayed as? instead of Chinese characters.

    I need this MaxL script to run in a batch script and I need the text file must be loaded in a cube later. But because the Chinese character is displayed as?, it will return the error when loading data.
    How to solve this problem?

    Thanks and greetings

    Not that I have ever done this (English and Dutch use the same character, and that's the limit of my languages), but by the Tech Ref:

    MaxL Shell and Unicode
    MaxL Shell is in native mode to start in interactive mode.
    MaxL Shell is native mode when a script without a header byte UTF8 processing.
    MaxL Shell is in UTF8 mode when a script with the header bytes UTF8 processing.
    For more information, see the section of Oracle Essbase database administrator's Guide titled "Compatibility between different Versions of the Client and the server software."

    http://download.Oracle.com/docs/CD/E17236_01/EPM.1112/esb_tech_ref/maxl_utf8shell.html

    See the SER60 here:
    http://download.Oracle.com/docs/CD/E17236_01/EPM.1112/esb_dbag/duniover.html

    And then perform a search in the section for this:

    If you use the Services Administration Console or another tool to create a MaxL script and save it as UTF-8 and then run the MaxL Shell script, MaxL Shell assumes the role of a client in Unicode mode. You can use this approach, for example, to update the contours across generations of dimension. When you create the script, don't forget to include the signing of UTF-8. See indicators of encoding.

    Check out the kaleidoscope of Glenn Schwartzberg since 2009 WORLD tour. I think this is the presentation I recommend the more - he has covered a lot of valuable land, including using the unicode utility. It is available at the section www.odtug.com technology resources. Look under Essbase/Hypeprion, then search for his name.

    You will have to join if you are not already a member. Associate membership is free and will allow you to download the presentation.

    Kind regards

    Cameron Lackpour

    P.S. If find you this point, could you post your solution for the edification of everyone?

  • MAXL Script will not file for data laod error write.

    Sorry, Glenn here is the new thread. I re took place without semi colon after data 3 and the same error came without anything being written to the error file.

    I voluntarily removed a member of the original contour which is included in the loaded data, but still the error file is not written in. I tried to make the load manually but runs it in the background, error file is created on my local hard drive, but he's not writing it. Check the output and it is written in a directory located on the server. I think it's normal.

    It will not write to a local drive? I'll try specifying a task on the server to see if it spins here.

    Thank you

    Original post below.

    Hello

    I am also having this problem.
    I'll include my script below but will state some details before
    We are on Essbase 11.1.1.3
    I'm running the administration Console of my PC client that connects to the server in the script and I read that in this whole file error message won't get written. This documentation has been to v 9.1.3

    Here is my script (I've changed the names)
    Login ' user '' password' server ';

    create the application "Money1' as 'Money2.

    coil stderr to 'errorfile ';

    import the database 'Money1'.' Hand ' data
    text local data_file 'Money1_Data.txt '.
    using the server rules_file 'Data3 '.
    Error adding to 'dataload.err ';

    run the calculation 'ALL CALC'; on 'Money1'.' Hand ';

    disconnection;
    spool off;
    "exit";


    Here's the error output I get:

    line of code: error add to 'dataload.err ';
    The statement executed with warnings.
    (3) close syntax error ["$"]

    I don't see a sign of dollar anywhere in my code and the file of errors did not occur.

    Also error files get written too if the actines are running in the background?

    Thank you!
    Alex

    It works for me in a MaxL script run through essmsh.exe:

    import database appname.dbname data from local text data_file "d:\\datafilename.txt" using server rules_file "rulename"
         on error write to "d:\\errorfilename.err" ;
    

    Sometimes EAS (I think that you run through this) did weird things to MaxL. I avoid MaxL in EAS as much as possible (such as 100% of the time).

    NB - the datafilename and errorfilename and their drive letters are local to each time that you run this process through the MaxL shell. I don't know how it works when you run EAS - are local drives to your local session on the server of the EAS? Don't know. Leave EAS, buy TextPad (no I'm not the author of this beautiful product) and download syntax MaxL library and be happy. :)

    Kind regards

    Cameron Lackpour

    Published by: CL on October 7, 2010 07:12
    Put the MaxL in a block of code so that it can work correctly.

  • Launch of Maxl Scripts

    Hello all-

    My users running Maxl script by looging remotely on the server. I want to stop the user to connect the area and ask them to run the script from their machine. The maxl script calls a security file that has the password to sign in Essbase. How can I achieve this? Is it possible I can do user run the script of their machine without having access to the security file that has the user name and password for the administrator account.

    Please advise!

    Thank you!

    It would be possible to remove the requirement for the security file if you encrypt the username your maxl script-based.
    You should always put the name of the server in your maxl script and I don't know how your environment variables are used.

    Or you can always have the security script and to remove passwords username which must be taken in charge with the encrypted file maxl.

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • can I change through MAXL Scripts database connections?

    Hello



    I just want to know if I can change through MAXL Scripts database connections. I use essbase 9.3.1.

    Hello

    MAXL will allow you to automate metadata or loading using a rules file, you can pass a name of user and password different to the SQL query, but you it won't let you change the connection that is associated with the rule.

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • MaxL script syntax: how to add comment lines?

    How can I add comment lines to the MaxL scripts? REM did not work, "did not work.

    http://download.Oracle.com/docs/CD/E10530_01/doc/EPM.931/html_esb_techref/MAXL/DDL/utils/Shell/syntax.htm

    Hello

    You add comments and C++ with / * for beginning and * / for the commentary to the end.

    Welcome them
    Kevin

  • MaxL Script and batch file

    I have a MaxL script that exports data from different cubes Level0. I have a batch file to call this script at daily intervals.

    I want to name something out of different every day (preferably NAMEmmdd type format). I know that I can add a rename or move the lot but wonder if there is a MaxL method that will allow me to export to another name?

    Current MaxL is simply
    export database APP. Level0 data_file DB database ' ' $Arborpath\am1119.txt "";

    Ideas or direction to go learn the answer?

    T,
    J

    Hello

    You can enter variables in maxl, so you the calling batch file can pass in a variable that contains the name of the file with the current date...

    For example, you have a batch file
    essmsh c:\temp\export.mxl "C:\temp\output%DATE:~3,2%%DATE:~0,2%.txt".

    If that was run today it would pass in ' C:\temp\output1118.txt

    Now in your maxl you just refer to the variable with

    export data from database sample.basic Level0 to data_file $1;

    $1 refers to the variable which has been adopted, the 1 being the position, in which it was adopted.

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • MAXL scripts to perform the backup of the following

    Help me with these (Maxl script) to do these backups


    How to take backup of the filters (use maxl script to get information from filtering of all native cubes).
    Since we use Xref calc a lot, so we need information of the backup location alias.
    We must so we need information of partition saved partitioning.

    Hello

    Filter are stored in the essbase.sec file is good start to ensure that is saved.

    As for extract filter by maxl information you can do it with something like: -.

    login password admin on localhost.
    spool to 'c:\temp\filters.txt ';
    show the line of filter all;
    spool off;
    disconnection;

    or if you want to restrict the filter down to a database using
    display the filter line app.db;

    You will also need to edit the width of the column to mount all the filter example
    Set column_width 50;

    You can also export the file safely in a text file if you want which includes all the information filter (from 9.3.1)
    security_file export of data_file C:\temp\sec_file.txt;

    I guess that your scores change very often, so you can easily just export the partition as xml to EAS, depending on what you are on.

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • Is it possible to run the command script with user account administrator rights?

    Is it possible to run the command script with administrator user account rights means please tell me how to...

    I need to run it in windows 7 professional service pack 1.

    There are a few myths that won't go away, for example

    • You can perform administrative tasks when you are working from a command prompt.
    • A script (batch file, VBScript, PowerShell) gives you administrative rights.

    There is no substance to a myth. Your account has administrator privileges, or it does not. There is no backdoor.

  • can I use waiting fuction in java script with qml

    HII guyzz... How to use the wait in java script with QML function as if it takes 20 minutes to perform a specific operation or a process after that battery is 100%

    You are better off using QTimer for something like that.

  • Is it possible to use a script with groovy activity code in a versioned project?

    Hello, we are trying to use script with groovy code activities. We use subversion to keep and share code between developers. (we are versioning projects, no applications)

    When a developer creates a script everything works fine until the code is only in the local workspace.

    When the developer commits new code (the XXX.gy file, the XXX.bpmn file and the XXXdocumentation.xml) and an another laurys the new file to the workspace, the script will not work. The activity of script will have an alert icon saying that "the method called in zzzz script does not exist.

    This happens always, except when a developer deletes its project and it checks entirely from svn.

    UPDATE:

    We discovered that some references to the identifier of the script are stored in database files in the .data file. This file is not versioned when versioning applications and we do not know if it's a good idea to release it. But without updating this data will not be found scripts...

    Is there a patch for this?

    Thank you

    OK, discovered, you need to remove the .data directory and restart jDeveloper

Maybe you are looking for