Essbase Maxl Variable Export

Is there a way to make a text file name variable when doing an export from Essbase Via Maxl? So in the example below I would set VARIABLE somewhere to be Jan or Feb or Mar?
export database 'NS115'.'GL_11510' using server report_file 'FPA_Asst' to data_file '/app/hyperion/essbase/app/FPA_GL/GL_FPA/FPA_AssetsVARIABLE.txt' ;

Assuming you have an environment variable named ExportMonth:
export database 'NS115'.'GL_11510' using server report_file 'FPA_Asst' to data_file {color:#ff0000}"{color}'/app/hyperion/essbase/app/FPA_GL/GL_FPA/FPA_Assets{color:#ff0000}$(ExportMonth){color}.txt'{color:#ff0000}"{color};

Similar Messages

  • Use of Essbase substitution variables in filename of a MaxL report script

    Hey guys.
    Is there a way that I can embed the value of one or more Essbase substitution variables in the filename of a report script in a MaxL command?
    I'm running a report script that uses sub. vars for entities and accounts and based on which of those members are set in the variables I want the filenames to include those member names. I'm looking for a way to include the &varName in the filename using the export database command.
    THANKS!

    Not really.
    If you want to do a lot of string mangling in a script outside of the report script, you can use DISPLAY VARIABLE:
    MAXL> display variable CurMo;
    application         database            variable            value
    +-------------------+-------------------+-------------------+-------------------
                                             CurMo               MayRegards,
    Robb Salzmann

  • How to get essbase substitution variable in ODI

    Hi All,
    I have a problem that I need to get the substitution variable from Essbase /EAS to work on some SQL statement in ODI.
    How can I do in ODI ???
    Thanks for all ..
    Thomas

    Hi,
    If you read my blog post :- http://john-goodwin.blogspot.com/2009/11/odi-series-planning-11113-enhancements.html
    In the post there is a section on retrieving essbase substitution variables and using them in ODI.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Essbase substitution variable used for SQL Dimension load-URGENT

    Hi All,
    I am creating one dimension through SQL Dimension load rule writing by parent child build rule. The SQL query is like below---
    distinct trim(dist_mobile),trim(ret_mobile) from dist_retailer al1 where al1.proc_dt=to_date(&Proc_date,'dd/mm/yyyy')
    When I fixed the value of proc_date (e.g.- '27/09/2008') then it is retrieving data properly, but when I try to make the same as a essbase variable as shown above (to give user the priviledge to select for which date data will be fetched from RDBMS to create the dim) and after setting the aforesaid value of that variable in essbase subs var screen and click 'OK/Retrieve' in rule,it is returning no rows executing the query as well as no error coming.
    I guess in query nothing is wrong but the subs variable part is not working. Can anybody please give some insight to resolve the problem.
    In this context, I would like to mention that I will have to use substitution variable in some other rule file also to automate the load process. How can I use essbase subs variable in SQL load rule? Could you please show me a proper summarise query illustrating how to use the subs var in aforesaid purpose for the sake of understanding?
    Thanks in advance.

    Hi,
    Sorry for delayed response. Appreciate your inputs. At last I have found out the solution which is as below----
    distinct trim(dist_mobile),trim(ret_mobile) from dist_retailer al1 where al1.proc_dt=to_date('&Proc_Dt','dd/mm/yyyy')
    after setting the substitution variable as Proc_Dt and set the value as 27/09/2008 (without any quotation mark or such sign) now I checked and now it is retrieving fine.
    Thanks & Regards.

  • Is it possible to read Essbase Substitution variables from ODI?

    Is it possible to read Essbase Substitution variables from ODI?

    Hi,
    You can do it with custom code, if you have a read of a blog I wrote :- http://john-goodwin.blogspot.com/2009/11/odi-series-planning-11113-enhancements.html
    About half way through I go into reading essbase sub vars using the essbase java API.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Maxl to export/import partition xml

    I have searched thru the tech ref at all the Maxl commands and I'm not seeing what I'm looking for.
    Is there a way to automate thru maxl (or esscmd) the exporting and importing of the xml file for partitions?
    TIA,
    Robert

    Is that the only option?
    I've already seen the result of
    display partition appname.dbname advanced
    and it doesn't seem very friendly as an input file. Looks like much parsing and chopping would need to be done in order to get what I need as input to
    create or replace partition command.
    So the answer to my question about maxl for exporting/importing the xml version of partition is "no"?

  • Forget to set environment variable export SAPINST_USE_HOSTNAME

    Dear Experts
    we have installed the SAP ECC6.0 EhP4 in HACMP environment with AIX6.1 ,Power HA cluster6.1, oracle 11g database
    the problem is while installing the CI and ASCS and Dialog instance I  missed  to set environment variable
    export SAPINST_USE_HOSTNAME = <virtual Host Name> and while starting the sap-inst also i didn't start as like
    ./sapint SAPINST_USE_HOSTNAME  = <virtual Host Name>,Now i am facing problem while doing cluster fail over to another node
    Node A host Name is not reflecting in Node B and I am not able to start  the SAP with host name of Node A
    in AIX6.1 in IBM Admin they didnt give any virtual host name they said that they  have configured  the cluster with two service IP there is no virtual IP in AIX6.1
      please help me out how to resolve this host Name issue and to start the SAP in Node B
    Thanks in Advance
    krishna

    Hi Krishna,
    I dont agree with the AIX 6.1 having no virtual ip's, because i recently installed a HA instance with ASCS, SCS & also ERS on 6.1
    to answer your questions:-
    "can you tell is this correct setup or anything we did mistake for file system setup and installation"
    This depends on what your requirement is. Typically a cluster will have Oracle on one host and SAP on the other host. Ill explain the VCS concept, so you will have a better understanding.
    Lets consider Node1 & Node2. Now each node will have a physical IP and a virtual IP. The Virtual IP will be associated with a set of file systems. For example /oracle will be associated to virtual ip lets say "xyzDB" & the /usr/sap/<sid>, TRANS & sap mount will be associated with virtual ip lets say "abcCI". Now when the cluster fails over to which ever node, these file systems will still be associated with their respective virtual ip's.
    So, the start profile will always have START_DVEBMGS_abcCI. Irrespective of which Node the sap is in, when you start the SAP, it will use the virtual hostname and start up SAP. I hope your getting the concept.?
    Coming back to the setup, since you have ASCS, Oracle , CI & a dialog instance. Im not sure what file systems you have associated with VCS groups. Can you give command "hastatus -sum" and post the output?
    Regarding your other question
    "this file system is moving to Node B but while starting SAP on Node B host Name is not reflecting and SAP is not coming up  due to there hostname didnt change in Node B,, can you advice me please ,,"
    This is inline with what i explained above for cluster mechanism. The physical IP will not change. It is only the virtual IP that is associated with a set of file systems.
    Ill give you one more example, Consider the parameter rdisp/mshost = <> . What should this be? Physical host or Virtual host?? :-) .It should be Virtual. Because the CI can be in Node1 or Node2. If we give the physical host, then if the SAP fails over to the other node. How will it start up? because the profiles still say the message server is in the other host... Getting my point?
    Regards,
    Shanser

  • Web Template - Variable & Export to Excel Web Items are not working

    Hi Experts,
    In a Web Report & Web Template Variable & Export to Excel Web Items are not working ; Any body have any idead ?
    Do i need to write any HTML code to funtion those web items.
    Thanks
    KAruna

    Dear Karuna,
    Review your default template. Probably is 0ANALYSIS_PATTERN.
    Reactive the version D and check again.
    Also, you are able to modify the webitems on Export to Excel on 'BUTTON_TOOLBAR_2' -> Button list number  4.
    And, you are able to check the 0ANALYSIS_PATTERN_EXPORT, in case of configuration.
    If you want to remove/add new items, I suggest you to save as another name. SAP does not allow to modify delivered objects
    ex:. 0Objects.
    Best Regards,
    Edward S. John

  • 11.1.1.6.11  /  Essbase Substitution Variables / RPD Init Block / Dynamic Variables

    11.1.1.6.11  /  Essbase Substitution Variables / RPD Init Block / Dynamic Variables
    How do I update the Init Block which is populated with the Essbase Substitution variables.   This is dynamically created the first time I import an Essbase cube and is populated with the Substitution variables when it is first imported into the RPD.   If later on new Substitution variables are added, they are not being reflected in the Init Block or its dynamic variables.  I have done the re-import of the data source with no change to the Init Block Dynamic Variables.   How do I get these new Substitution variables imported?
    It appears that the only way is to delete it from the Physical Layer, however this deletes any changes I have made to Cube in the physical layer.

    So delete it from the Physical Layer, change the Substitution Variables associated with the cube.   Import it back into the physical layer.   It does NOT delete existing Init Block Dynamic variables that no longer exist as Substitution variables.  

  • Using an essbase substitution variable in dataexport command in a BR

    Hi,
    I have created a calc script to export data using DATAEXPORT, and to define the filename an essbase variable.
    Here all right
    I copy this code to a business rules to run it from a business rules, but I have a problem with the essbase variable, when I validate it, it gives me the error:
    Detail:Encountered "&FileNm" at line 28, column 26.
    Was expecting:
    My essbase variable is set to:
    "e:\Hyperion\products\Essbase\EssbaseServer\app\TMPGB\dataexportCustomerY2.txt"
    in double quote
    How anyone use in a Business rules with the command dataexport an essbase substitution variable

    So it works in a calc script and not a BR, I know BR's sometimes don't always act exactly the same as calc scripts and you occassionally hit issues like this.
    What version are you using because I have a feeling I have tested this in the past and I am sure it worked.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Maxl Import - Export L0 data crashes

    Hi to all,We have an automation Maxl script, for a mission critical application where we export 6 times a day all L0 data, then import them back again, .It has been running for sometime smoothly, but suddenly it startet to crash, meaning it doesnt export the data or import it back in.We write on a file specific directory other than app\db (we tried this one but didnt work).We use MS W2000 server Essbase 6.5.We heard from Hyp that maybe there is a bug on v6.5Does anyone had similar problems?Thanksyannis

    The SQL run via the load rule understands my subvars.  The load rule SQL looks like this:
    select...
    WHERE
      AND (('1' = '&IncSpanYr' --IF THE PERIODS SPAN YEARS
      AND (('12' = '&CurMoNm' --IN JUNE LOOK INTO NEXT YEAR PERIOD 1
      AND ((A.FISCAL_YEAR = '&CurYrNm' AND A.ACCOUNTING_PERIOD IN ('&PriMoNm', '&CurMoNm'))
    This turns into:
    WHERE
      AND (('1' = '1' --IF THE PERIODS SPAN YEARS
      AND (('12' = '12' --IN JUNE LOOK INTO NEXT YEAR PERIOD 1
      AND ((A.FISCAL_YEAR = '2014' AND A.ACCOUNTING_PERIOD IN ('2', '3'))
    My issue is getting a dump of all that data that the SQL is pulling.  I don't see a way to do that in the import database command.  A separate job on the SQL side (like SSIS) could pull the data, but can't access the subvars easily.  Does that make sense?  Or did I misunderstand your suggestion?
    Thanks-
    Cameron

  • Setting Essbase substitution variable thru ODI

    Hello Friends,
    We have some procedures in ODI that call maxl scripts to unlock app, clear data and agg. But how do we set Substitution variable in Essbase?
    Any feedbacks are appreciate...
    Thank You.

    Thanks John.
    - We created a maxl script with the statement below
    alter system set variable 'ActMon' 'Feb';
    - Created a procedure in ODI to call the maxl
    the procedure is working...but we still have to manually edit the maxl script every month to change the current month value.
    How about this?
    We have a oracle table in ODI schema which has month column populated. can we use that month column data and some how set the Essbase Sub var?

  • Essbase - MaxL import dimensions

    Hi everybody,
    I have to update a dimension on my Essbase ASO application (only metadata). It is an incremental load dimension starting from a txt file containing all the elements, either those that currently are in the dimension. I'm using the MaxL statement Import dimensions by server rules file. Although, i'm wondering what the clause "preserve alla data" will do? What happens if i do not insert this clause when importing dimensions? After the the import i have to save the outline or launch the restructure?
    Thank you in adavance guys,
    Maurizio

    Hi Celvin,
    thnks for your answer. So, If i launch the following Maxl Script without the clause "preserve all data" i could lose all the data stored in the db?
    import database sample.basic dimensions
    from data_file 'test.txt'
    using rules_file 'test.rul'
    on error append to 'test.log'
    I tried on the ASOSample and the data haven't been cleared. There may be some options at applicatoin level or server level that effect how it works? could it be a safety clause in case of an abnormal shutdown during the import process?
    I know it's obviously better to put always the "preserve alla data" clause, but at the moment i'm evaluating the functionality of some existing scripts and i want to understand how they works.
    Thank you very much
    Maurizio

  • Filters Essbase - Maxl

    Is there a way to remove just the metaread access permission that I have in a specific filter using the maxl?
    Regards,
    Rafael Melo

    Hey Cameron,
    Actually i'm implementing your (your own) solution for hyperion planning metaread filters. But in my case happened something that wasn't possible to solve with your script. That's what happens: if i provisioning a user to access planning (tool and dimension) and generate its filter into essbase it works fine. So, if I run the script to generate the metaread filters, the metaread filters are generated. In the case I deprovisioning those user (just in the shared server) to have no access to the server, this filter will not be refreshed anymore when I run the refreshment from planning and the filter will continue there into essbase. When i run the script that create my metaread filter it generate multiples metaread filter (each time a run it generate one more) because, obvious, the refresment from planning doesn't drop/delete this filter because it no access.
    Cameron, sorry my English and since now thanks for your help (your script too).
    Rafael Melo - Brazil

  • Essbase MaxL Help : URGENT

    Hello,
    I want to write a maxL script in which I want to implement the following process:---
    1)login to essbase
    2) then login to one RDBMS database and check some fields in that relational schema and if those fields are satisfying some conditions (if and then conditions) then run the Dimension build rule and data load rule
    3) then run calcscript
    4) then if any error, save the logfile and then logout from essbase
    Would you please help me on how to implement the second point above in maxL script ? Could you please share some relevant sample maxL codes ?
    Thanks for your prompt reply.
    Raj

    Why don't you interchange your steps .
    Step-2 : check what you need to check in RDBMS first through whatever means.
    then login to essbase and do whatever things you want . It is possibe to call batch files and scripts from RDBMS .
    your batch file with have Maxl code on what you want to do . ( including logging into essbase)
    Simply logging into Essbase as Step-1 seems unnecessary to me .
    Trying to do things in RDBMS from Maxl will not be possible and even if possible is more difficult because you have to analyze the return status .
    Edited by: Praveen Guttikonda on Sep 24, 2008 4:38 AM

Maybe you are looking for

  • Lion 10.7.4 and java problem

    i recently updated to lion 10.7.4 and noticed that Pogo games stopped loading.  (on my PC they work fine.) later, used safari to do something that had worked before but now noticed that the graphic that you're supposed to be able to read for security

  • HT4623 why is my battery life dieing so quickly

    I recently updated my ipad2.   Since then, my battery life dies so quickly.    I can use it once, close it, then open it again and the battery life is down 40%.    I used to get two days of life before the update.   I closed out all the "Location" re

  • Could not albe to refresh cache

    If 500 says HTTP connection. I do not understand why my cache is not getting refreshed. I am getting an error "Could not able to refresh cache",Error while trying to refresh the cache in sxi_cache. Please Clarify. Thanks. Srini

  • Is it possible to use OpenSolaris for Sun VDI 3.1 core servers?

    The documentation states that Sun VDI 3.1 core servers must be Solaris 10 (u7 or u8). While it is not supported to use OpenSolaris (2009.06 dev_129/130 or SXCE snv_129) for the core servers, is this expected to work at all in practice (i.e. in a sing

  • Null links in collaboration room

    Hello, I created a collaboration room with the following room parts: Project Home Documents and Links Tasks Admin: Room Admin: Members and Room Relations Team Members of these, Admin:Room and Admin:Members and Room Relations are assigned only to Admi