Substitution Variable in Essbase Report Script

Hi All,
In my report script I want to use Essbase Substitution Variable, just as an replacement to Text field... I am using following syntax:
{STARTHEADING
TEXT 0 "Bud"
&StartMonthNo
TEXT 0 "12"
ENDHEADING}
Where StartMonthNo is 1 ... I don't want to add this variable as some member in Essbase, just need to display Heading as
Bud
1
12
Using above syntax, it is just showing
Bud
12
I have tried many syntax like Text 0 &StartMonthNo or Text 0 "&StartMonthNo" But nothing seems to be working...
Please lemme know if I am missing something here .. Please give me some suggestions ...
-CJ

Hi,
Your thinking is sound and creative, however due to the way they work you can't define a subvar as a concatenation of other subvars because it will be interpreted literally. e.g.
sv1 = hello
sv2 = world
sv3 = &sv1 + &sv2
sv3 interpreted by essbase will be: &sv1 + &sv2 and throw an error.
(If you think about it, concatenating two 255 char subvars into another would still exceed the character liimit.)
So,
if you want to concatenate several long subvars, just define them and mash them together:
&sv1 &sv2 = hello world
regards,
Robb Salzmann

Similar Messages

  • Substitution Variable in Essbase

    Hi Experts,
    In our report script, whenever there is a small change in say Product then we need to update several Rows/code in Report scripts.We were using Rename script for the same like -
    {Rename "ABC"} "testl"
    So, we thought of a solution where we can create say 3 Substitution variables as we have restriction of 255 chars say V1, V2 and V3 substitution variables having this Rename script. and finally create "V" substitution variable = V1+V2+V3
    Is there any possibility of having Substitution variable Value as sum of 3 other existing Substitution variables in Essbase? Say in my Case
    V = V1+ V2+V3
    Please help me out if there is any?

    Hi,
    Your thinking is sound and creative, however due to the way they work you can't define a subvar as a concatenation of other subvars because it will be interpreted literally. e.g.
    sv1 = hello
    sv2 = world
    sv3 = &sv1 + &sv2
    sv3 interpreted by essbase will be: &sv1 + &sv2 and throw an error.
    (If you think about it, concatenating two 255 char subvars into another would still exceed the character liimit.)
    So,
    if you want to concatenate several long subvars, just define them and mash them together:
    &sv1 &sv2 = hello world
    regards,
    Robb Salzmann

  • Business Rule variable in Essbase report

    Hi,
    I need to create a report where I will use the variable (created as Business Rules variable e.g.- [BudYear],[CurrVersion] etc) but it is not working. If I use [BudYear] it is just showing the dimension name in report as 'Year'. But when I use any exxbase substitution variable (e.g.- &CurYear etc) it is working fine. So, can it be possible to use business rules variable in essbase reports?
    Can it be possible to save the essbase report in comma delimited format (I am only getting tab delimited option). Please revert back.
    Thanks & Regards.

    As John rightly said, HBR rules are only applicable within HBR. What you want is an Essbase Substitution Variable. So long as the value does not get selected interactively in the HBR, you can use a Substitution Variable instead. An example would be something like current year -- this isn't going to get changed by the users via a Planning form or a prompt.
    HBRs, Calc Scripts, member formulas, load rules, and of course Essbase report scripts can all read substitution variables. See the DBAG for more information. Personally, I only use HBR variables, local or global, for items off the POV or driven by a run-time prompt.
    Unfortunately, a comma delimted file is a pain in a report script -- you have to make your columns fixed length and then use the MASK command to put the commas in -- ugh. However tab delimited files are an option. I've never found an IT group that couldn't handle the latter format.
    You may also go with the the DATAEXPORT calc script command -- a comma delmited output is possible with that command and of course it supports Essbase substitution variables.
    Regards,
    Cameron Lackpour

  • Error executing essbase report script using maxl

    Hi,
    V 11.1.2.1 (64 bit) on windows
    An essbase report script errors when it is run from maxl. When I run it directly in maxl the error is
    Error - 1030205 - Client directory does not exisit: ...EssbaserServer\<instance>\client
    When I run it within EAS the error is
    Client directory does not exisit: EPMSystem11R1/common/EssbaseRTC-64/11.1.2.0client
    Unexpected essbase error 1030205
    The client is installed but the folder locations do not exist. There is a calc script which does a data export which works fine. The essbase report can be manually executed without a problem. This worked fine in 9.3.1.
    Here is the script (without actual names)
    export database 'app'.'database' using report_file 'AReport' to data_file 'c:\\Output.txt';
    I would appreciate any help. I have looked at the knowledge base and can't find anything relevant.
    Thanks in advance,
    Nathan
    I would appreciate

    Hi,
    The issue is now resolved.
    The client folder must be created where the EAS service is, not Essbase. Once this was done the report script could not be found. In discussion over the phone with Oracle we did some testing, as they use a non distributed environment. If you use 'using report file' you need to specify the path to the report file i.e.
    D:\Oracle\Middleware\user_projects\epmsystem\EssbaseServer\<instance>\app\<app name>\<database>\report.rep'
    The .rep must also be included.
    If you use 'using server report file' you only need to specify the report name, without the extension, and the data file path. You specify the path as normal i.e. D:\nathan.txt but you can get away with simply a file name such as 'nathan.txt'. In a distributed environment this exports to the server where the EAS service is to
    <drive>:\Oracle\Middleware\user_projects\domains\EPMSystem
    When Oracle support did this it went to the Essbase bin folder as it was a non distributable environment.
    The subtle differences between 9.3.1 and 11.1.2.1......
    Thanks to all those who contributed.
    Nathan

  • Essbase report script match pattern on alias

    report scriptHi,
    I need some help on essbase report script.  I have been racking my brain trying to figure out how to use the essbase report script command "<MATCH" so that I can match for a pattern on the alias name as opposed to the member name. I have searched the Internet with no luck. Maybe someone in this community knows how to do this.  If you can reply with a specific example that would help me out as I am very visual.
    Thanks in advance.

    You can use <REPALIAS, e.g., for Sample.Basic:
    <REPALIAS "Product"
    <ROW ("Product")
    <MATCH("Product", "Diet*"
    Diet Cola
    (24,761)
    Diet Root Beer   25,185,158,741
    Diet Cream
    23,703,677,612
    Diet Cola
    (24,761)
    Diet Root Beer   25,185,158,741
    Diet Cream
    23,703,677,612
      Diet Drinks
    48,888,811,592
    Using <OUTALT on its own (confusingly, at least as I read the documentation) continues selecting by alias, but displays member name:
    <OUTALT
    <ROW ("Product")
    <MATCH("Product", "Diet*"
    100-20   
    (24,761)
    200-20  
    25,185,158,741
    300-30  
    23,703,677,612
    100-20   
    (24,761)
    200-20  
    25,185,158,741
    300-30  
    23,703,677,612
      Diet  
    48,888,811,592
    Without either, the MATCH only looks at member names:
    <ROW ("Product")
    <MATCH("Product", "Diet*"
    Diet    
    48,888,811,592

  • RE:  Essbase Report Scripts

    Hi all
    i really thanks for your support ...
    Here is my question
    I need a Essbase report script which in essence is a basic query where we would say all lev 0 cost centers excluding the some of the rollup points.
    i.e i need to delete some level 0 members using Rule script and we are in 6.5.4 version please help me out in this situation
    Please i really need this script or else please let me know is this possible using report scripts..
    Please ...
    Thanks
    jai
    Edited by: user9314481 on Mar 11, 2010 5:59 AM

    Hi all
    I am not able to find a solution for this issue , please help me out...
    I need a Essbase report script which in essence is a basic query where we would say all lev 0 cost centers excluding the some of the rollup points.
    i.e i need to delete some level 0 members using Rule script because my level 0 members are combination of product 'A ' and Product 'B' but now my users are interested in Product 'B' data and we are in 6.5.4 version please help me out in this situation
    Please i really need this script or else please let me know is this possible using report scripts..

  • Essbase report script in ODI procedure/variable

    Hi,
    Is there a way to call an existing report script in essbase in an ODI procedure/variable?
    BEST!
    Edited by: 867760 on Sep 1, 2011 2:39 PM

    Yes you can use the essbase Java API and create a procedure either using Java, Jython or Groovy.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Problem setting the value of a substitution variable in a calc script

    Hi, All.
    I'm trying to update the value of a substitution variable inside an IF statement and I'm having trouble.
    Here's the code:
    *"Jan"(*
    IF  (LoopCounter = 1) &varEntity = "100";
    ENDIF;)
    the error I get back from EAS is:
    Error: 1200336 Error parsing formula for [Jan] (line 54): [(] without [)]

    I know CL knows a lot about HBR, if he's around today... LOL
    As a matter of fact, I just used an HBR (not using Calc Manager till I have to)'s macro functionality to drive fx for different Scenarios in a Planning app. Here's how I call the macro:
              /*     Call the macro mcrFxCoreOutYears for the four fx rate types for ALL 12 months of the year.     */
              FIX(&BudYear)
                   %mcrFxCoreOutYears(Constant)
                   %mcrFxCoreOutYears(Comparable)
                   %mcrFxCoreOutYears(Estimate)
                   %mcrFxCoreOutYears(Actual)
              ENDFIXI pass the Scenarios Constant, Comparable, Estimate, and Actual to the macro mcrFxCoreOutYears. You can apply HBRs against Essbase.
    I believe (I can't remember what exactly -- is it that templates don't accept parameters? That seems hard to believe. Looking at a CM template, that does seem to be the case. Bummer if I'm right.) that Calc Manager BRs have less functionality wrt templates, but I haven't worked with CM for over a year.
    It works really well -- a single place to maintain code and no appreciable performance cost.
    You cannot launch a HBR from a MaxL script but HBRs can be launched from command lines -- this may constrain where you place your automation (it basically has to run off of whatever the EAS server is. You may end up shelling out of MaxL to execute the HBR or even execute scripts across servers -- that does get more complicated.).
    Anyway, if you have any more questions, ask away -- it really is a very powerful component. I will have to look at CM more closely (sooner or later I will lose the HBR vs CM argument and at least need to know if templates support parameters) to see if I'm right on what I wrote above.
    Regards,
    Cameron Lackpour
    P.S. You cannot define an ARRAY in an HBR macro because ARRAY arrayname[value] gets read as a parameter. I ended up declaring the array in the calling HBR.
    P.P.S. I really need to write up the fx approach in a blog post -- it is wicked fast and really easy to use. Too many other posts in the queue already.
    Edited by: CL on Aug 24, 2011 1:48 PM

  • Substitution variable in Essbase Studio

    Hello,
    Does anyone know if it's possible to use Substitution variables inside a custom SQL in Essbase Studio ? When I try to use, I got an error message ( ORA-01008: not all variables bound ).
    I'd like to make the SQL generated by Studio dynamic in order to set different load periods. The way I found is to join the SQL with a control table which has an initial/end date. Before running the cube deploy script I update the table with the date range I want. But I'm not sure that's the best way to do it.
    Anyn suggestion ?
    Thanks,
    Victor

    This post speaks to the error message but not in the context of Essbase Studio => ORA-01008: not all variables bound
    Although there are a myriad of approaches to accomplish this I can certainly appreciate your desire to have it function properly upon Studio code generation & execution itself.
    I will reach-out to some of my Oracle colleagues and inquire.
    Thank you,
    Todd Rebner

  • Essbase report scripts

    Hi,
    Is it possible to make report scripts to the XML format in Essbase (using Report Script Editor)? I've only done report scripts, that is saved in .txt format.
    Thanks in advance!

    Hi, I wan't to export data by using report script editor, but the file that I get from that should be xml. Is it possible?

  • Substitution Variables in Essbase Load Rules File

    Hi,
    Has anyone tried using substitution variables in Load Rules File Header definition?
    I need to load data based on the Year & I have different Files for 3 Years- CurYr, BudYr1 & BudYr2. Is it allowed to specify the Year Substitution variable in the Rule File Header? I am getting an error while loading.
    Appreciate your thoughts.
    Thanks,
    -Ethan.

    Tim,
    Thanks for the response.
    I figured it out. The error message I was getting was because of some parsing issue. I have defined Year as "FY12" in quotes. I removed quotes & it worked.
    Thank You.
    Ethan.

  • Essbase Report Script Help - Restrict

    Hi folks,
    Problem : We are building a cube to perform tier/stage based allocations.
    I have to generate a report script that displays balances of each cost center(row), for each tier (coloumn).
    but i have to restrict the data strictly to <0 or negetive balances for all coloumns
    I have used
    <RESTRICT (@DataCol(1) < 0 )
    to restrict for coloumn one, but when i tried to repeat this for coloumn 2, the script gives me a syntax error that i cant use restrict more than once. Is there a way around it
    Thank you in advance .

    restrict is limited to a single data column. It would not make sense to restrict on multiple columns. think about the implication if you could. what you might consider is have a total column and restrict on it.

  • Essbase Report Script

    Hi Experts,
    I am trying to run a report script which comprises of 5 Link statements (I have 10 dimensions in my cube) and when I run the script through EAS I see there are 5 sessions getting started consecutively after every 5 min's and the script is taking some 35 min's to run but I am not get the output text file at my selected location.
    I request you to please reply me with your precious suggestions.
    Thanks,
    Addy.

    No there's no partition connections neither we are using against the target cube.
    We are not using any syntax for output file, when we run the script in EAS it prompts with a dialog box wherein we select the output file path and in text format.

  • Pb using substitution variables in Essbase 7.1

    Hello I want to use the value of Current-year and current-month variable set in the application for the formula of my estimated scenario. When I validate the formula it's fine but after saving i got this error message in the log file :any help ? i was thinking the & and name of the variable will give me the value....thank in advance Local/ADLPlan/Sales/Administrator/Error(1200324)Error compiling formula for [Estimated] (line 1): operator expected after [&]Compilation failedError encountered when loading member [Estimated]'s calc string [IF (@ISMBR("FY04":(&Current_Year)))    IF (@ISMBR ((&Current_Month):"September") AND @ISMBR((&Current_Year)))     "MLO";          IF (@ISMBR((&Current_Month)))          "Actual";          ENDIF;     ELSE "Actual";     ENDIF;ELSE "MLO";ENDIF;], ignored

    Try removing the parenthesis surrounding your subvar.For instanceIF (@ISMBR("FY04":(&Current_Year)))Should beIF (@ISMBR("FY04":&Current_Year))Repeat for the others as well.Hope that helps.

  • Variable in report script

    Is it possible to create create user defined variables in report script?

    You can't use an Essbase report script to set a substitution variable.
    You can set it in EAS or use MaxL (or Esscmd) to do so.
    See: http://download.oracle.com/docs/cd/E12825_01/epm.111/esb_techref/maxl_variable.htm
    MaxL/Esscmd can be used to set a substitution variable and run a report script that references the variable.
    Regards,
    Cameron Lackpour

Maybe you are looking for