Help to wards maxl scripting

we have 2008 data and 2009 data...when the 2010 data is exploded(loading) in to the essbase cube, my manager wants to delete the 2008 years data through by automation-maxl commands.How do you do..pls post the answer for this

Hi,
You can use the maxl command "Execute Calculation", you will just need to write your calc script to clear out the data and then call it using the command.
Have a read of http://download.oracle.com/docs/cd/E12825_01/epm.111/esb_techref/maxl_excalc.htm it has examples so you should be fine.
Cheers
John
http://john-goodwin.blogspot.com/

Similar Messages

  • Essmsh executes maxl script, but does not end

    Hi, I could really need some help with a Maxl script I've built for a customer.
    The script builds the account dimension several times in a row. Each time for a different Alias Table.
    I choose this method, instead of the Load Alias_Table method, because I don't want to load Aliases for all members in all dimensions. Just only for the account dimension.
    When running the script from a batch file manually, nothing seems wrong, however when running the batch file from HAL essmsh never finishes.
    This is what happens in HAL:
    a batch file is executed containing the following command:
    call Essmsh D:\JDE2GL\Bin\Maxl_UpdateOutline.txt
    The Maxl_UpdateOutline.txt contains the following Maxl script:
    login {user} {password} on {server};
    spool stdout on to 'output.txt';
    spool stderr on to 'errors.txt';
    alter database {application}.{database} unlock all objects;
    alter system unload application {application};
    import database {appliaction}.{database} dimensions
    connect as '{SQLuser}' identified by '{SQLpassword}' using server rules_file 'DmAc_Def'
    preserve all data on error append to 'D:\\JDE2GL\\Outbox\\MaxL_UpdateOutlineAc_Def.err';
    import database {application}.{database} dimensions
    connect as '{SQLuser}' identified by '{SQLpassword}' using server rules_file 'DmAc_BEL'
    preserve all data on error append to 'D:\\JDE2GL\\Outbox\\MaxL_UpdateOutlineAc_BEL.err';
    import database {application}.{database} dimensions
    connect as '{SQLuser}' identified by '{SQLpassword}' using server rules_file 'DmAc_FRA'
    preserve all data on error append to 'D:\\JDE2GL\\Outbox\\MaxL_UpdateOutlineAc_FRA.err';
    import database {application}.{database} dimensions
    connect as '{SQLuser}' identified by '{SQLpassword}' using server rules_file 'DmAc_USA'
    preserve all data on error append to 'D:\\JDE2GL\\Outbox\\MaxL_UpdateOutlineAc_USA.err';
    import database {application}.{database} dimensions
    connect as '{SQLuser}' identified by '{SQLpassword}' using server rules_file 'DmAc_SPA'
    preserve all data on error append to 'D:\\JDE2GL\\Outbox\\MaxL_UpdateOutlineAc_SPA.err';
    import database {application}.{database} dimensions
    connect as '{SQLuser}' identified by '{SQLpassword}' using server rules_file 'DmAc_ARG'
    preserve all data on error append to 'D:\\JDE2GL\\Outbox\\MaxL_UpdateOutlineAc_ARG.err';
    spool off;
    logout;
    exit;
    In the "Outbox" directory I can see the error log files, with some warnings on duplicate member names appear.
    In the Essbase Application Log file, I can see that all dimension builds were executed succesfully.
    The spool file output.txt nor the errors.txt are created when running from HAL.
    I've used this HAL procedure thousands of times with one dimension build without any problems, even with more dimension builds it didn't give any errors until recently.
    Does somebody have any ideas..? Would be much appreciated!
    Thanks,
    Rudy

    Hi,
    we work with the exit label as follows:
    alter database ...
    iferror getmeout;
    alter database ...
    iferror getmeout...
    define label "getmeout";
    spool off;
    logout;
    EXIT;
    the spool off and logout command should be part of the defined lable (in your case, too), otherwise you wouldnt logout your session if an error occurs.
    Kind regards
    André

  • ODI fails when running MAXL scripts

    HI,
    We have a problem with ODI where when a scenario has a maxl script as a step the scenario fails.
    This is not a problem in our production environment but it is present in our DEV and TEST environments. We believe it may be a problem with the cloning process from PROD.
    Has anyone had this issue previously or can provide some helpful direction.
    Regards
    Luke
    ODI 10.1.3.5

    What is the error you are getting at the failure point?

  • Any Maxl Script to Export and import of Partition

    Hi All,
    Is there any maxl or Esscmd command which will do an Export or an import of the partition.
    Regards,
    Krishna.

    Hi Krishna,
    here ,there are 2 things.
    Firstly, creation of partition( which is possible through MAXL scripts).Once the partition is made, an XML is created(which is what garycris was mentioning in his post).
    Goto any application -> database -> partitions ->right click here , you see "import partition",and the file nature is of XML.When you look at this window , you will undestand .I am not sure of the same functinoality in MAXL.
    Hope this info helps
    Sandeep Reddy Enti
    HCC

  • Script to export Security file using maxl script

    can anyone provide me the Script to export Security file using maxl script.It should create a log file and a batch file should also be there to schedule the Maxl script.Please help me with this

    Hi,
    You can use something like
    [b]login admin password on localhost;
    [b]spool on to 'c:\temp\log.txt';
    [b]export security_file to data_file C:\temp\sec_file.txt;
    [b]spool off;
    [b]logout;
    Then you can have a batch file that just calls the maxl script
    essmsh name_of_maxl_script.mxl
    The batch script can then be scheduled.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Cahnge the date  dynamically in Maxl script

    Hi All,
    I am excuting one max for clearing the data for particuler cells it s ok
    It will work for 9th month but next month it will not work until i dont change the value manually
    Dynamically i need to change
    alter database 'ACCOUNT'.'account' clear data in region '{([2010.09],[Actual])}' physical;
    how can i do this , any help would be appriciated..

    I think he wants to avoid updating anything manually though?
    you should be able to:
    a. Build the date/string in a batch file.
    b. pass that date/string to the maxl script as a paramter
    c. use the parameter in your alter database script
    I have also seen people rebuild the entire maxl script each month from a skeleton in another text file or a database but thats probably over complicating.
    You could also use that variable to update a substitution variable

  • 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,
    Naveen

    972698 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/

  • Automation process in Workspace (using MaxL script)

    Hi All,
    I have a MaxL script to export Level 0 data and to update new data in a database
    It is working fine.
    I have tried to schedule it, and its also working fine.
    But according to my requirement, i have to publish this MaxL script in workspace as a job or as a file so that I can run this MaxL script in workspace only.
    I have tried some way but didn't get success.
    So help me to solve my problem
    Thanks in advance

    We are using workspace and jobs to automate our processes. Here is how we do it:
    In the server that runs workspace, we place the batch or exe that needs to be run. Then we set up a job factory using that same batch file.
    Then on workspace we import this batch file as a generic job with the associated job factory and DONE!
    Next time you execute the job from workspace, that batch file will run from your workspace machine.
    send me an email to [email protected] and I'll give you the documentation that we used to set it up in more details.

  • 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
    Bk

    I 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/

  • MAXL SCRIPT TO EXECUTE IN BACKGROUND THE DATA LOAD

    Hi,
    I have problem with a MaxL script, I don´t know the command to execute a data load in the background, someone knows??? it would be very grateful if you can help me because now I have to load the data manually and then tick execute in background.
    Thanks for your help
    Regards,

    If the two processes are in no way dependent on each other, why not just use two separate MaxL scripts and run / schedule them separately?
    If you really need to launch multiple MaxL operations against different cubes to run in the background from a single script you can only do this with a shell / command script, not 'natively' in MaxL. If you're on Windows and using CMD, for example, see the 'START' command.
    --EDIT: Crossed over with Sunil, think he pretty much covers it!                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How to define Sparse/dense settings through MAXL script ?

    Hi,
    How to define Sparse/dense settings through MAXL script ?
    By default its taking all dimensions as sparse dimension type. I want to define sparse and dense through MAXLand automate everything.
    Please help me out or advice me work around.
    Thanks,
    Rajendra Prasad Gella.

    you cannot modify sparse/desne settings directly through MAXL.
    The only way you will be able to build/modify/remove dimensions/members through maxl is using rules files.
    So if you are building dimensions using rules files, for a new dimension you can specify dimension properties.
    in rules file options -> dimension build settings -> dimension definition -> Rules file -> dimensions.
    Here you can specify new dimensions and after specifying you can right click and edit properties where you can change various dimension level properties including sparse/dense settings.
    And you knw me well (Krishna from Hyd) and so you can call me on my mobile if you need more info.. lol :)
    - Krish

  • Maxl scripts to perform backup of the following

    Help me with these (Maxl script to do these backups)
         How to take Backup of filters (use maxl script to get filter information of all native cubes).
         Since we use xref calc a lot so we need to backup information of location alias.     
    We have partitioning so we need to get partition information backed up.

    Hi,
    Filter information is stored in the essbase.sec file so it is good start to make sure that is being backed up.
    As for extracting filter information by maxl you can do it with something like :-
    login admin password on localhost;
    spool on to 'c:\temp\filters.txt';
    display filter row all;
    spool off;
    logout;
    or if you want to narrow the filter down to a database use
    display filter row app.db;
    You will also need to change the column width to fit all the filter in e.g.
    set column_width 50;
    You can also dump the whole security file to a text file if you wanted which includes all the filter information (from 9.3.1)
    export security_file to data_file C:\temp\sec_file.txt;
    I take it your partitions don't change very often so you can easily just export the partition to xml from EAS, depending on what you are on.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • MaxL script invocation solution?

    I need to use maxl script to refresh data. But before doing this I have to call an oracle sql package to do something first like prepare data. After finishing that maxl script I also need to do something else. And furthermore I need to catch exceptions and do some logging. I think the whole process should be in a transaction.
    Is there a solution for this?
    pure os script? pure oracle script? or a java programe?

    There is error handling available in all the solutions suggested.
    In case you are using an Oracle package, you can specify the execution to be exited on failure. For the maxl errors you can check the return value of sqlcmd execution in the procedure itself OR you can check for files which the essbase dataload might have created.
    In ODI also you can create process flows which can stop execution on failure. In Batch scripts I know there is way to handle errors but I have not implemented it. May be someone else can throw some light on it.
    Personally, I would prefer doing everything in Oracle just so that I have only 2 technologies to take care of.
    Hope this helps!

  • MaxL Script Issue

    Hello everyone-
    I have a need to track when data is posted to an account for the first time within certain departments. Individual departments are created as a combination of three dimensions: Company, LOB, and Entities. For example, I wish to track data that is posted to C601 or C602 in the company dimension, L10 in the LOB dimension, and D140 or D145 in the Entities dimension.
    I'm a newbie in MaxL, but my thought is that creating a trigger in MaxL may be the best way of going about this. I tagged all accounts that currently have data in the departments I wish to track with a UDA of MktgAcct. What I want to do is create a spool if there is any data that is loaded to an account not tagged as MktgAcct within any combination of the members listed above. I'm trying to do this through a MaxL script and my attempts at this are below. I know what I have won't work, but it's an example of what I'm trying to do conceptually. Can anyone give me some guidance on making this work? Thanks so much in advance!
    CREATE OR REPLACE AFTER UPDATE TRIGGER 'CCRCRPT'.'Finstmt'.'Mktg'
    WHERE
    CROSSJOIN({[Net Income].CHILDREN},
         {([Company].[C601], [Company].[C602], [LOB].[L10], [Entities].[D145], [Scenarios].[Actual], [Versions].[Final], [Years].[FY08])}
    WHEN NOT(UDA([Accounts], "MktgAcct"))>0
    THEN SPOOL Mktg_acct
    END

    I guess you are not that far from making it work.
    Here some remarks :
    In your "WHEN" condition you are using the "NOT" operator which is a "boolean" therefore returning TRUE or FALSE not a value.
    As for your UDA(Accounts, "MktgAcct"), the MDX UDA function returns a set of members having the UDA=MktgAcct which is not what you want, I guess.
    Maybe you could try smthg like this :
    WHEN NOT(ISUDA(Accounts,"MktgAcct")) AND [Accounts].CurrentMember > 0
    Hope it helps,

  • MAXL Script to update Member Filters

    Hoping someone can point me in the right direction.<BR><BR>I've created a MAXL script which changes the lines on a Member Filter, effectively changing it from a READ to a WRITE. The only problem is after the MAXL script has run the User loses the Filter assigned to them.<BR><BR>Is there any way of getting the Filter to stay with the user.<BR><BR>Many Thanks<BR><BR>Mark

    Rosi wrote:
    Hello -
    Yes. Here is an example of the maxl script -
    login 'Hypadmin' '#########' on myessbaseserver;
    spool on to 'mymaxl.log';
    /* Setting the substitution variable */
    alter database appname.databasename set variable 'CurMonth' 'Aug';
    display variable all;
    spool off;
    Logout;
    Exit;
    You can call this maxl from a batch file scheduled from windows scheduled task.
    RegardsThanks very much for your help!

Maybe you are looking for

  • Is there a way to match all columns in a table?

    Oracle 11.1.0.7: Is there any way to say match all the columns of Table A with Table B? For eg: Table A id name Table B id name Is there a way to say match all the columns with similar column in other in a select instead of doing "where A.id = B.id a

  • Installation error - photoshop CS4 on windows vista 64 bit

    Hi guys after doing all the ideas in my previous post , I'm now with this error messege while installing the trial version of Adobe photoshop CS4 then after finishing the installation I've tried to start the software so I've get another msg please te

  • How sync Ical in a nokia 6111 ?

    Hi everybody, I work in a mac book with Ical and Isync the latest, I have a problem to synchronize my calendar on my nokia 6111. My contacts were well synchronise but my calendar never work when I synchronise them, I can't see what I write on my cale

  • Jsf with popup window jsf and .xhtml?

    hi, HI, I am using example at http://www.jsftutorials.net/interface/jsf-popup.html for popup with jsf using javascript. In main form when click on button or link, i am opening popup window , and getting values from popup window to parent window. Here

  • Cannot insert PS_TXN ORA-00942 table or view does not exist

    We are using jdev 11.1.1.4.0 We have two users in the database and various application modules which connect to these users using datasources We have tested the application with applicatin module pooling enabled off to test for passivation and activa