Load Rules - MaXL

Hi,
I is it possible to run load rules from batch file? I have saved my rules file to xml and would like to run this xml or at least myrule.rul file from batch.
Thank you very much
lubos

Hi,
Yes you can use maxl to load data using a rules file, just create a maxl script and batch it up.
For details on using the maxl command "Import Data", have a read of :- http://download.oracle.com/docs/cd/E12825_01/epm.111/esb_techref/frameset.htm?maxl_imp_data.htm
Cheers
John
http://john-goodwin.blogspot.com/

Similar Messages

  • Maxl - load rules from file system

    I am writing a Maxl script and I can get it to run "using server rules_file". When I created the rules file I save it to the file system and browse to it using EAS. Does anyone know what the syntax is to run the rules file from the file system while in a Maxl script?
    Than you in advance
    Russ

    Hi guys, back to revisiting the calc script from maxl, but this time a new twist:
    One of the suggestions was to copy the calc script from the local drive to the essbase server (this would require FTP since essbase is running on Unix), the client isn't sold on that idea. The second idea would be to save the calc scripts in a separate database on the server and reference them from there.
    Just as a reminder, I am storing the load rules and calc scripts in a different location because it is an HPCM application and each time I deploy, the calc scripts get deleted automatically.
    I have a database and app as follows CostC.CostC and have created another db and app CostRef.CostRef. My script is C_Prof_A.csc and it is saved in CostRef.CostRef. Is it possible to execute a calc script saved in another database/app on a different database/app?
    if I save the script in CostC.CostC, I can execute it in Maxl as follows: execute calculation 'CostC'.'CostC'.'C_Prof_A';
    There is a snippet on the Rittman Mead Consulting blog that references a local Script_file
    execute calculation on database DemoASO.BasicASO with
    local script_file "/u01/app/...../DemoASO/BasicASO/BudVar.csc"
    When I try something similar, it barks at me when it sees "with", I have tried "using" etc. but can't get anything to work.
    If this doesn't work, then I will be reduced to the FTP process. If that is the case, if anyone has an example of the FTP commands I would appreciate it
    Russ

  • Substitution variable in Load rule Header Essbase 11.1.1.3

    Think its obvious you can use substitution variable as a Header definition on Load rules, does version 11.1.1.3 has any issues' with it, i am running into Unexpected Essbase error 1019026.
    Error:
    Unknown member [Mgmt Actual,Base,No Vertical,No Customer] found while processing string [Mgmt Actual","Base","No Vertical","No Customer]
    Unexpected Essbase error 1019026
    I want to copy Actual data into other scenario's in ASO cube so thought will use substitution variables to eliminate duplication on load rules.
    Mgmt Actual is a scenario set thru Substitution variable at the DB level
    i.e *&CurScen="Mgmt Actual" (set at DB level)*
    Header Definition on load rule *&CurScen,"Base","No Vertical","No Customer"*
    Data load work fine If i replace substitution variable with original member *"Mgmt Actual","Base","No Vertical","No Customer"*.
    I did notice some users complaining erratic behavior when substitution variables are placed in load rule header at the End on multiple members, i have tried all places End, First and Middle.
    tried using single Load rule with EAS and MAXl same results.
    i want to keep altering scenarios on header definition and use same rule files.
    alter database AppName.DbName set variable CurScen '"Mgmt Actual"';
    Running out of ideas any help!

    Error:
    Unknown member [Mgmt Actual,Base,No Vertical,No Customer] found while processing string [Mgmt Actual","Base","No Vertical","No Customer]
    Unexpected Essbase error 1019026
    *1019026 Unknown member memberName found while processing string string*
    Possible Problems
    Analytic Services does not recognize the listed string as a member of the outline.
    Possible Solutions
    Make sure that the member name is valid. The member name is in the rules file.
    * Are you using the correct rules file?
    * Is the rules file connected to the correct outline?
    * Can you validate the rules file?
    * Are member names or variable names enclosed in quotation marks where necessary?
    * Does the member exist in the outline? If not, you can add the member by modifying the outline during the dimension build or add the member in the Outline Editor.
    * Make sure that the member is not specified as a header in the rules file.
    Regards,
    Prabhas

  • Warning while laoding data thru load rule

    Hello,
    I am getting a warning while loading the data thru load rule.
    Where can I see that waning?
    Thanks

    By default the error information store in datdload.err
    or
    if you want to set your own error file in maxl using statement
    import database dbname data from datafile datafilepath using server rule file filename +on error write to the path where you want to store\file name.err+
    the file name is user choice
    thanks
    kumar
    Edited by: 806739 on Nov 1, 2010 9:51 AM
    Edited by: 806739 on Nov 1, 2010 9:51 AM

  • Load Rules in Planning

    Hi,
    Is there a way to run or control Load Rules that are ordinarily created in Essbase Console from the Planning 11.1.1.1 Interface? I am finding that oher than this, we can do almost everything from Planning Interface, and if possible, would like to at least trigger the load rules from Planning, even if they cannot be created here.
    Appeciate any comments here.
    Regards
    Mike

    Hi,
    You will only be able to run calc scripts or business rules from within planning, there is no direct way of executing load rules.
    It is possible to create a custom java function that runs a maxl script from a business rule but that would need to be created.
    Some people have mentioned it is possible to run batch scripts from workspace but I have never actually seen it running very well.
    Cheers
    John
    http://john-goodwin.blogspot.com/

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

  • Changing a Load rule programatically. (SQL interface)

    Does anyone know if you can change the source odbc connection for a load rule programatically? I'd like to write a MAXL or script that will change my cubes to point to my dev OR my test environment - but I have 15 load rules for each cube. (5 or 6 cubes to change).Thanks.

    As far as I have been able to determine you can not modify a load rule programatically. Your only solution is to copy the load rule then change the sql query. Alternatively you could use a view as the underlying SQL i.e. Select * from View. You could then modify the view as required. i.e. run the load with the view pointing to table1 then modify the view to point to table 2 and run the load again.

  • Storing a Variable from a load rule

    Hi, I'm a newby to Essbase so I apologize if this is a simple question:I'm trying to store the current working day from a load rule and store it in a singe location in the model or even better in a variable. I've looked at substitution variables but it doesn't appear that you can set the value from a load rule and then use in the outline.I currently have a member in the period dimension where this is stored, however the value is being stored for each of the other dimensions as well, which seems a waste of storage.Any help would be much appreciated.Mark

    As usual, there are a number of ways to do this, and a substitution variable has (IMHO) been somewhat deprecated in favor of UDA's and alias table references for almost all things that substitution variables were intended.Between these two, an Alias is the most appropriate choice for your needs -- and easier in the long run. Assigning a "Current Workday" alias to the appropriate time period is well inside the abilities of a load rule, but to remove the previously set one, you'll need to use an MAXL or Esscmd script. Dropping the entire alias table is your best bet, and you'll either need to use a dedicated table (that only sets the one alias), or you'll need to ensure that the load rule assigns all the aliases in the table.While not 100% complete, the above should point you in the right direction.

  • Load Rule validates, yet no data values modified

    The load rule worked on a server running an NT operating system with essbase version 6.1.3. I rebuilt the application on a server running W2k with an essbase version 6.1.6. The load rule validates on the new server. The load looks as if it is loading correctly. When I check out the log file, it shows a warning number 1003035 with a message stating "No data values modified by load of this data file." Any ideas??? Creating a new load rule from scratch did not work. My next plan of attack is to check out the actual txt file to see if anything looks odd.

    Have you got any record select or record reject statements in your rules?

  • How to open a .csv file in a load rule

    Hi All,
    I am trying to open a .csv file in a load rule to find it is working correctly. But, I am not given an option to look at the .csv files when I click on "Open Data File" option from the File menu.
    Please suggest.
    TIA,
    Vamsikrishna.

    I have tried that as well.
    But, It is not giving me that option, "All files".
    It is just showing
    Text files (*.txt),
    Excel Document (*.xls),
    Week1 Document (*.Wk1),
    Week2 Document (*.Wk2),
    Week3 Document (*.Wk3) and
    Week4 Document (*.Wk4).
    Please suggest.
    TIA,
    Vamsikrishna.

  • How to use a substitution variable in a load rule?

    I need to use a substitution variable in a load rule in a column, as I will receive a parameter to fix the Month and Year values within the data loading, could somebody tell me if this is possible. I put an expresion "&Yearproc" in the column value but it is not working.

    If you're a member of ODTUG (or even if not, you can sign up for an associate membership for free) you can download Glenn's presentation from 2009 Kaliedoscope "Little Used Features of Essbase (Like Data Mining and Triggers)" -- there is a section in that presentation on substitution variables -- he does a really good job in showing how this works.
    Go to: www.odtug.com, then Tech Resources, then Essbase/Hyperion, and search for Schwartzberg. Currently it's the ninth presentation on the list -- I think this changes based on popularity of downloads.
    Regards,
    Cameron Lackpour

  • FDMEE: EBS segments not appearing in the FDMEE Load Rule window

    I have configured FDMEE to load GL data from specific E-Business 12 segments. This has been working fine.
    Recently, additional segments were defined in EBS. Unfortunately, these new segments do not appear in the Load Rule box (whereas the original segments do appear).
    Is there an option/trigger somewhere in FDMEE (or EBS) to force the new segments to appear in the FDMEE Load Rule selection segment box? (I have re-initialised the source system, with no effect.)
    Ian

    Hi,
    You need to make sure that you are adding them to the Import Format defined between the Source and Target system. Have you done this yet?
    Are there target dimensions in the app to point to?

  • Substitution variable in sql load rules file

    Okay gurus,
    I need a little guidance, I have to replace the value of 201020 and 2008 from substitution variables. I have created the variables and set them up globally on the essbase server.
    201020 = FW00
    2008 = FY00
    WHERE ACT.FISCAL_WEEK_ID <= 201020
    AND ACT.FISCAL_YEAR_ID > 2008
    AND RTDIV.DIV IN (1,2,3,4,5,6,7,8,9,99) (This is the query with hard coded values of week and year)
    When i m trying to put sub variables there , its throwing the error. please find below the way i was trying to do it.
    WHERE ACT.FISCAL_WEEK_ID = '&FW00'
    AND ACT.FISCAL_YEAR_ID = '&FY00'
    But unfortunately, its throwing error Error: 1021001 Failed to Establish Connection With SQL Database Server. See log for more information
    I know that this is the generic error because if i put the hard coded value in sql load rules it works fine.
    Is it the right way to out sub var in sql load rules???
    Please advice and thanks in advance.

    Hi Genn,
    I tried to see the app log for sql but i m afraid that there is nothing in there, the only error message which I am getting in app log is this:
    Failed to Establish Connection With SQL Database Server. See log for more information
    Its an ASO cube and initially i was using the variable as FY00 AS "2008" it did not work and than i tried without quotes in variable but is still not working.
    Any idea..thanks in advance.

  • Variable in the Load Rule file

    Hi,
    We're running EAS 9.3.1 and trying to update a load rule to include a substitution variable in the header. The load rule works fine when the member name is defined explicitly and the variable works fine in the calc scripts. Any ideas? I tried removing the quotes and the & symbol already. See error below.
    Reading Rule SQL Information For Database [Plan1]
    Reading Rules From Rule Object For Database [Plan1]
    Unknown member [&CalcVersion] found while processing string ["Budget","&CalcVersion","Load","Functional"]
    Unexpected Essbase error 1019026
    Thanks.

    Did you remove the quotes by using the replace in "field Properties" and Global properties tab? I am trying to replace double quotes with null in the data file and it does not seems to be working.
    Thanks
    Yagna

  • Mapping in Load rules.

    Hi All,
    I have a situation where I have to maintain a mapping for the product codes in my Load rule.
    And this is no small list of products that I have to manually updated the mapping to my load rule.. It is huge as hell.
    Now, is there any way that I can bulk upload my mappings into the load rule in Essbase?
    Please let me know if you have any suggestions.
    TIA,
    KRIS.

    Not that I didn't like the answers. But, all these were our suggestions to my clients way before I posted my question in this forum.
    I couldn't implement the easy methods to achieve this just because the client requirements were different.
    I am sorry if I have been rude anywhere by not considering the solutions provided.
    We have also tried to implement a program which edits the input file based on a mapping file we use. It was all fine for most of the products but there were hiccups at some.
    That pushed us to make this exhaustive labor work to implement the mappings in the load rule. (again just because the client did not want any mapping in the outline or new outline).
    I appreciate all your help and sorry once again if my responses were rude.
    Thanks All,
    KRIS.

Maybe you are looking for