MaxL Syntax

I can't quite get the syntax down on this MaxL statement,<BR><BR>Can anybody?<BR><BR>MAXL> alter system kill request on database 'Reportng';<BR><BR> ERROR - 1242020 - (1) Syntax error near end of statement.<BR><BR><BR>Thanks,<BR>Jim

Jim:<BR><BR>Use the [not available in ESSCMD] <b>msh</b> feature, which allows you to call a different MaxL script from within the first one. Example, you have a "master" script called <b>one.mxl</b> where you set the SPOOL on. It calls other scripts such as <b>two.mxl</b>, one at a time, which then return to the master, and all of it goes into your <b>one.txt</b> log, as follows:<BR><BR><b>/* ONE.MXL */<BR>/* turn on the log - note the need to 'escape' the backslashes */<BR> spool on to "f:\\temp\\one.txt";<BR>/* call the first script - be sure <u>not</u> to end it with <u>exit;</u> */<BR> msh two.mxl;<BR>/* continue with other scripts as necessary */<BR> msh whatever.mxl;<BR>/* turn off the log */<BR> spool off;<BR>/* bounce out */<BR> exit;</b>

Similar Messages

  • Maxl syntax error

    Hi,
    I tried to export data form an ASO cube with below maxl syntax.
    SPOOL ON TO   '/.../DATA1.txt';
    WITH
    SET [Period1] AS '{[Period].LEVELS (0).MEMBERS}'
    SET [Version11] AS '{[Final]}'
    SET [Scenario1] AS '{[Actual]}'
    SET [CostCenters1] AS '{[CostCenters].LEVELS (0).MEMBERS}'
    SET [Account1] AS '{[Account].LEVELS (0).MEMBERS}'
    SELECT
    {[Year].[FY12],[Year].[FY13]} ON COLUMNS,
    {CROSSJOIN ({[Period1]},CROSSJOIN({[Version11]},CROSSJOIN({[Cost_Centers1]},{[Account1]})))))))) ON ROWS
    FROM
    [APPLICATION].[DATABASE]
    SPOOL OFF;
    but it showed an error with the line :
    {[Year].[FY12],[Year].[FY13]} ON COLUMNS,
    i don't understand why.
    BTW, the data in the cube got about 1,500,000 records, can i export it with the above syntax?

    You may get around the 2^32cell limitation by using NonEmptySubset.  See the documentation.
    Given an input set, NonEmptySubset returns a subset of that input set in which all tuples evaluate to nonempty. An optional value expression may be specified for the nonempty check.
    This function can help optimize queries that are based on a large set for which the set of nonempty combinations is known to be small. NonEmptySubset reduces the size of the set in the presense of a metric; for example, you might request the nonempty subset of descendants for specific Units.  NonEmptySubset is used to reduce the size of a set before a subsequent analytical retrieval.
    This function trims members from some of the dimensions by including only those member combinations that have data associated with them. Instead of processing all dimension combinations at once, it processes crossjoined set of only a subset of dimensions first, trims them to include only those tuples that have data,then combines it with other dimensions.
    DATAEXPORT is also an option.
    Of course you could always pull smaller sets.

  • Import ASO MAXL syntax question

    I have a maxl script I use to load an ASO database. I realize that I need to have not only the load rule set to append data but the import statement as well. I took the syntax straight from the Essbase documentation but I'm still getting an error. Here's my script:
    alter database App.DB initialize load_buffer with buffer_id 1;
    import database App.DB data from data_file '0947Brand.txt' using server rules_file 'RetailB.rul' to load_buffer with buffer_id 1 on error write to 'RetailB1.err';
    import database App.DB data from load_buffer with buffer_id 1 add values;
    alter database App.DB initialize load_buffer with buffer_id 1;
    import database App.DB data from data_file '0947Generic.txt' using server rules_file 'RetailB.rul' to load_buffer with buffer_id 1 on error write to 'RetailB2.err';
    import database App.DB data from load_buffer with buffer_id 1 add values;
    My error file shows this as an error:
    essmsh error: Parse error near add
    Any ideas?

    Jeanette R. wrote:
    I have a maxl script I use to load an ASO database. I realize that I need to have not only the load rule set to append data but the import statement as well. I took the syntax straight from the Essbase documentation but I'm still getting an error. Here's my script:
    alter database App.DB initialize load_buffer with buffer_id 1;
    import database App.DB data from data_file '0947Brand.txt' using server rules_file 'RetailB.rul' to load_buffer with buffer_id 1 on error write to 'RetailB1.err';
    import database App.DB data from load_buffer with buffer_id 1 add values;
    alter database App.DB initialize load_buffer with buffer_id 1;
    import database App.DB data from data_file '0947Generic.txt' using server rules_file 'RetailB.rul' to load_buffer with buffer_id 1 on error write to 'RetailB2.err';
    import database App.DB data from load_buffer with buffer_id 1 add values;
    My error file shows this as an error:
    essmsh error: Parse error near add
    Any ideas?Not sure of the error, but you are not really using buffers efficiently. You should have a single
    alter database App.DB initialize load_buffer with buffer_id 1;
    then your two import statements
    and finally the
    import database App.DB data from load_buffer with buffer_id 1; statement
    Your actual import statements should have the add values
    When you load multiple files into a buffer at once, it takes and adds the intersections together automatically. you only need the add values if you want to add the values to existing values in the cube.

  • How to use MDX with Maxl?

    I have been looking at documentation on the MDX language and would like to program some simple queries using it. I tried to run it inside a command line MAXL call and couldn't figure out how to tell it the output format. Are there manuals that cover the basics of how to get the MDX calls executed and data formated? I have Essbase 7.1 but am using an old version 6 relase of EAM so I don't have the web based Analysis Services I keep seeing referenced in manuals. Any help would be appreciated.<BR>

    In MAXL (or in EAS) there's not a lot to say about result specification. You can adjust column width, and you can set default display of names vs aliases from results. Look at the technical reference guide under MAXL syntax for thise.<BR><BR>Primarily, you would issue queries using the C API, Java API or with XMLA (possibly also VB, either now or soon) and would format results yourself. Rather like the relationship between SQL and ODBC.<BR><BR>HTH

  • Maxl Script will not write to error file for data laod.

    Sorry Glenn here is the new thread. I re ran without the semi colon after data 3 and the same error came up without anything being written to the error file.
    I purposely removed a member from the orginal outline that is included in the data loaded but yet the error file is not written to. I tried doing the load manually but executing it in the background, error file is to be created on my local HD but it does not write it there. Checked the output and it is written to a directory located on the server. Although i think this is normal.
    Could it be that it will not write to a local drive? I am going to try specifying a spot on the server to see if it runs there.
    thanks
    Original post below.
    Hello,
    I am also having this issue.
    I will include my script below but will state some details before
    We are on Essbase 11.1.1.3
    I am running Admin Console from my client PC that connects to the server in the script and I read that in this set up the error file will not get written to. This documentation was for v 9.1.3
    Here is my script (i changed some of the names)
    login 'user' 'password' on server';
    create application 'Money1' as 'Money2';
    spool stderr on to 'errorfile';
    import database 'Money1'.'Main' data
    from local text data_file 'Money1_Data.txt'
    using server rules_file 'Data3'
    on error append to 'dataload.err';
    execute calculation 'CALC ALL;' on 'Money1'.'Main';
    logout;
    spool off;
    exit;
    here is the error output i get:
    code line: on error append to 'dataload.err';
    Statement executed with warnings.
    (3) Syntax error near ['$']
    I don't see a dollar sign anywhere in my code and the error file does not get produced.
    Also do error files get written too if the actins are executed in the background?
    Thanks!
    Alex

    This 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 you are running it through that) does weird things to MaxL. I eschew MaxL in EAS as much as possible (like 100% of the time).
    NB -- the datafilename and errorfilename and their drive letters are local to wherever you're running this process through the MaxL shell. I don't know how that works when you're running EAS -- are drives local to your session, local to the EAS server? Dunno. Leave EAS behind, buy TextPad (no I am not the author of that fine product) and download the MaxL syntax library, and be happy. :)
    Regards,
    Cameron Lackpour
    Edited by: CL on Oct 7, 2010 7:12 AM
    Put the MaxL into a code block to get it to display correctly.

  • Method of creating data load rules

    Hi, I'm new to essbase and learning by creating a sample aplication from scratch. I'm looking for ways to create an outline dynamically from an Oracle table using the rules file and avoiding the Application Manager, which I find onerous.Is there a way to create or edit a rules file using a text editor and either esscmd or MaxL syntax?

    Unfortunately no - App Man (or EAS) is the only way to create load rules. Once you create the rules though there should be no need to change them, as long as the format of the data does not change (ie more/less columns, column ordering, etc)Regards,Jade---------------------------Jade ColeSenior Business Intelligence ConsultantClarity [email protected]

  • Load_buffer for incremental load - ASO

    how can you adjust the size of the load buffer ?
    what is default setting?
    if i have three ASO apps that load data nightly, how can I optimize?
    thanks,
    pr

    PR,
    This is the MAXL syntax to set the load buffer.
    alter database database_name
    initialize load_buffer with buffer_id 1;
    Secondly, If you are using Administration services console, by default it uses this data load buffer.
    To answer your final question of optimization.
    Le me know ,How much memory do you have to your server ,that would help to tell how many application can be loaded at a time.
    for example: If your servers RAM is 16 GB,
    then you can comfortably load 3 cubes at a time.
    as a cube can make use of max 2 GB of RAM.
    Sandeep Reddy Enti
    HCC

  • Syntax error Creating Transparent Partition in MaxL

    Hello,
    I'm trying to create a simple transparent partition (no mapping needed, just using all the 3 dimensions and descendants in the source database to the target database. I'm getting a syntax error, I went through the MaxL naming conventions and also tried a couple of diffferent things but to no avail. Please help as to what the error might be:
    My code is as below. The error I get is: Getting a syntax error near '@IDESCENDANTS("Accounts"), @IDESCENDANTS("Products"),@IDESCENDANTS("Market)
    Code:
    create transparent partition student8.coke area '@IDESCENDANTS("Accounts"), @IDESCENDANTS("Products"),@IDESCENDANTS("Market")' sourceArea to student8.cokepart at lab01 as essadmin identified by 'password' area '@IDESCENDANTS("Accounts"), @IDESCENDANTS(Products), @IDESCENDANTS("Market")' targetArea;

    Nobody replied to this, but actually the error was the double quotes on Accounts, Products and Market.

  • MaxL script syntax: How do I add comment lines?

    How do I add comment lines to MaxL scripts? REM didn't work, ' didn't work.
    http://download.oracle.com/docs/cd/E10530_01/doc/epm.931/html_esb_techref/maxl/ddl/utils/shell/syntax.htm

    Hmm, a url delimted by "!" on either side is supposed to allow me to embed a graphic.
    Apparently I am to stupid/impatient/all of the above to figure that out, so check out a code sample from my blog (I am on a roll today with references to this beast) to see what it looks like: Regards,
    Cameron Lackpour                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Can we use Substitution variables in MAXL?

    Hi,
    Can we use substitution variables in MAXL script?
    I have to run this MAXL command for clearing a slice of ASO cube on V11.1.1.3.
    alter database Apname.DBname clear data in region 'CrossJoin({[2009]},{[Dec]})';
    I am planning to use Current_year & Current_month variables instead of hardcoding 2009 & Dec as I have to use this everymonth to clear the current months data.
    If it is allowed, what is the syntax?
    Is there any alternative apart from substitution variables?
    Appreciate your thoughts.
    Thanks,
    -Ethan.

    You would just use ampersand and the variable name instead of the hard coding e.g. &yearVar &periodVar.
    Not tried it on aso clears but in theory it should work as ...'CrossJoin({&yearVar},{&periodVar})';
    just change yearVar and periodVar for your substitution variable names.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • MaxL import statement w/ rules

    How do you tell MaxL to look on the server for the rules file (without specifying a full path)?Harold

    Try using the following syntax:import database DBS_NAME data from data_file DATA_FILE_NAME using server rules_file RULES_FILE_NAME on error write to ERROR_FILE_NAME;Shane EckertThinkFast Consulting, Inc.

  • MAXL import statement with ASO

    I am attempting to write a MAXL script to import data using a load rule and want this to subtract from any existing data already stored in the database. I am using a load buffer and my syntax is as follows:
    alter database App.DB initialize load_buffer with buffer_id 1;
    import database App.DB data from data_file 'RnBF2B1.txt' using server rules_file 'Rev2B.rul' to load_buffer with buffer_id 1 on error write to 'Rev2B.err';
    import database App.DB data from load_buffer with buffer_id 1 subtract values;
    I am getting the error :
    essmsh error: Parse error near subtract
    Any ideas?

    I am using Essbase 9.3.1
    If I go to the command prompt and type line by line, I do not get an error but if I put it in a mshs file, it appears like there is an extra space before the word subtract and that's where I have the error. I have checked and there really is only one space.
    This is what my command file looks like
    MAXL> import database App.db data from load_buffer with buffer_id 1 subtract values;
    essmsh errro: Parse error near subtract
    Do you think MAXL is puttin in an extra space or something? I feel like my code is haunted by a ghost.
    Edited by: Jeanette R. on Aug 2, 2011 1:42 PM

  • MAXL Import data statement error

    Can someone assist me in the maxl import data statement.
    In the import data statement "import database App.DB data from data_file "\\servername\\folder1\\folder1\\data.txt";
    The error I get is trying to specify the syntax for the path of the server. Does someone have an example of the import statement syntax that is referencing the data file from a server?
    Thanks

    Have you tried something like :-
    import database App.Db data from text data_file "\\\\servername\\sharename\\directory\\datafile.txt" using server rules_file "dataload" on error write to "dataerrors.err";
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • How to check MAxl is running properly or not

    Hi All,
    i am working on ASO cube which has to implement Automation for dimension building and data loading. I am unable to execute even a single sample systax with out error. Is there any specific method to use Maxl in ASO cube or any precautions to be taken in ASO for Maxl scripts.
    I don't know it is a foolish question or not to ask like "how to check the Maxl is working properly or not" bcoz it is raising me doubt by raising error for sample script also.
    please help me out from this issue .
    Regards

    Can you log into Essbase through MaxL interactively.
    If so, can you do it from a script? Something like:
    login username password on servername ;
    exit ;
    If you can't do the first, yup, your MaxL client is hosed or you don't have a valid username/password. Or you don't know the servername.
    If you can't do the latter, perhaps your client (could be the server itself, if you're running it from there) has a pathing issue when running batch files.
    If both work, it is a syntax issue. Now you're just faced with your mistake(s). :) But at least you don't have to spin wheels trying to figure out if MaxL is working or not.
    Regards,
    Cameron Lackpour
    P.S. You might want to try using the MaxL editor in EAS and see if your login code works there. I believe (not sure, but I think so) that EAS has its own flavor of MaxL as I know you can run code there without having the Essbase client installed on a local machine.

  • Error - 1242021 Syntax error

    So I am attempting to grant access for JExport. Please help.
    MAXL> grant codeBase "file:\\Hyperion\AnalyticServices\java\udf\ExportCDF.jar" {
    permission java.security.AllPermission};
    I am receiving this message:
    ERROR - 1242021 - (1) Syntax error near ['codeBase'].
    I have no idea if this is where I am suppose to enter this in or what.
    PLEASE HELP!

    This should be a value you add to the udf.policy file on the server. It is not something MaxL can do for you. If on Window, notpad will work fine, if on UNIX VI

Maybe you are looking for

  • Mail on iPhone iOS 6.1.3 Opens Single Inbox by Default, Not "All Mailboxes"

    Mail on iPhone iOS 6.1.3 Opens Single Inbox by Default, Not "All Mailboxes" I have five e-mail accounts linked to my Mail app (an Exchange account, an IMAP account, and three Outlook POP accounts.  Everytime I close the app (close the app meaning dou

  • How do I snap a photo when held to ear?

    Does anyone know of an app or a way to snap a photo when the iPhone is held to my ear? Since the proximity sensor disables the screen when it gets close to my ear, there is not a good way to snap a photo inconspicuously - i.e. when I want to look lik

  • Raw problem with cs4

      I have cs4, I can't open raw files, I use nikon d5200

  • Final cut and logic studion on a mac book air?

    I reflect on what computer I should buy if I use a lot of Logic Studio and Final Cut. I have thought of Mac Book Pro for a while now, but then released the new Mac Book Air and it's very stylish and easy to carry. What do you think?

  • How Document Currency of Price Determination is updated BBP_PD in Sourcing

    Hi Friends, I have created one shopping with currency JPY & Its company code is also JPY But while creating PO from souring (before creating PO) If i view the shopping cart (Sourcing Itself) details Under prices tab, Its gross,net amount showing as U