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

Similar Messages

  • 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

  • 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

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

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

  • Essbase server - automatic change of substitution variable from SQL

    Hi,I would like to automaticaly change the substitution variable in Essbase Server. Is it posible to change the substitition variable from external source e.g. SQL statement?Simple sample:I would like to assign value "2003" to "CurYear" substitution variable. But value "2003" I would like to get from SQL:"select year(current date) from table".There are commands in Esscmd and MaxL Shell, see bellow.Esscmd command:CREATEVARIABLE "CurYear" "localhost" "" "" "2003";MaxL Shell:alter system set variable CurYear '2003';Is it possible to get the value '2003' from SQL and pass this value to Esscmd command or MaxL Shell?My system:Windows 2000 Professional Service pack 4Essbase at 6.5.3 levelThanks,Grofaty

    You can create a text file from the SQL server that writes the command like"CREATEVARIABLE "CurrYear" "Servername" "AppName" "DBName" "2005";then you can create a schedule job that would run this script which can update the variable. CREATEVARIABLE creates/replaces the current variable.

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

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

  • Synchronize substitution variables values between Essbase and Planning

    Hello,
    In EPM version 11.1.2.1 (but we noticed the problem also in previous EPM versions) when we set the value of a substitution variable in Essbase, the value is is not immediately updated in Planning: for some time we see the old value. The value in Planning remains unchanged even in we log off or exit Planning and log on again.
    Instead if we restart the Planning service, the value is immediately updated
    Since we would like to use the Essbase substitution variables to manage some selections in Planning Data Entru Forms, is there any way to force a synchronization, or to increase the frequence of synchronizations between Essbase and Planning?
    Regards
    Francesco Quaranta

    Have a look at setting the planning property SUBST_VAR_CACHE_LIFETIME
    http://docs.oracle.com/cd/E17236_01/epm.1112/hp_admin/properts.html
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Financial Reporting and substitution variable

    Hello,
    i have a problem with FR and substitution variable. I create the substitution variable in Essbase for example antYear but i dont'see in dimension layout in FR studio and workspace.
    Thanks.

    You'll need to restart FR studio, after you have created the substitution variables. As the studio only performs one read of the sub var database on startup.
    It also won't show up unless you assign a member to it.
    Hope this helps.
    Iain

  • Substitution variable in Calculation manager

    Hi,
    In calc manager there are two types of variable
    1. replacement
    2. execution.
    I want to know that is there any connection between substitution variable in Essbase and these variable?
    In a document, I saw that
    "Planning and Essbase users only: If you want to create a replacement variable for Planning or Essbase, on Replacement, do these tasks:
    Enter a name for the variable.
    Select a type for the variable:
    Numeric—a number
    String—a text string
    Essbase—an Essbase substitution variable
    Note:
    You cannot use an Essbase substitution variable in a component of a business rule in an Essbase aggregate storage application, including those used in Oracle General Ledger."
    But I have created an Essbase replacement variable for a EPMA essbase application but it is not reflected in Essbase.
    Why?

    Hi, Rubi.
    Last NOTE was about Essbase aggregate storage application (ASO). Planning apps (using EPMA) has been created in Block Storage option (BSO). It isn't so?

  • How to Update Substitution Variable

    Hi All,
    we are using Essbase 9.3.1.2. i am trying to create substitution variable using essbase console and i am getting an error as 1051082: substitution variable currmonth already exists however i have deleted all my substitution variables before creating them. When i checked in the backend using maxl i am able to see that the new substitution variable is created (*Currmonth*) however in console when i right click on the server --> edit -> variables i am not able see that variable that i have created.
    Can anyone of you help me out...
    regards,
    Naveen.
    Edited by: user12209997 on Sep 13, 2010 11:29 AM

    Are you sure you're not creating the substitution variable at say, the database level, but are then looking at the application or server level? Or the reverse?
    What do you get in MaxL when you type:
    display variable all ;
    If you set a variable, can you use it in an Essbase retrieve through the Excel add-in? If yes, I'd say the variable really exists and it's EAS that is wrong. There's always the restart of the EAS service to try.
    Regards,
    Cameron Lackpour

  • Multiple values to Substitution variable in AAS

    Hi,
    Is that valid to assign multiple values to substitution variable in essbase.For example Curmth(Substitution Variable) is it possible to assing Jan, feb etc.
    Thanks

    Yes in multiple ways depending on the useage.
    For instance, you could have currmth in multiple database with different values
    Sample.basic Currmth= Jan
    SampASO.basic Currmth = Feb
    Or in a single database you could have
    Sample.basic Currmth = "Jan","Feb","Mar"
    The above would work in a calc script bout would not work in an excel retrieve.
    You can also use variables for other things For instance, you could have a vairable called settings where
    settings = set updatecalc off; set msg summary; set aggmssg off
    and put this in the top of your calc scripts so you don't have to repeat it every time.

  • Unable to execute the substitution variable in calc scripts in essbase 11.1

    Unable to execute the substitution variable in calc scripts in essbase 11.1.3
    FIX(&CURRVERSION,COLA)
    Unit=units*Listprice;
    dataexport "file" "," "E:\NEW.TXT";
    ENDFIX
    Error: 1200471 Error parsing formula for FIX STATEMENT (line 1): expression expected before [)]
    This is error it throws when executing the calculation script
    I wonder whether its a problem with substitution variable i want to know wat went wrong inside the fix statement
    I have created substitution variable use maxl
    Installed the essbase in custom manner and standlone mode nt register with the shared services ,
    Is this problem with the custom installation of essbase
    Regards
    shenna

    If you remove the substitution variable and replace it with the actual value (whatever that is), does the code work? That will tell you if the issue is around the substitution variable or not.
    John -- First you race Glenn, then you race me -- and you always win. :)
    Regards,
    Cameron Lackpour

  • 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

Maybe you are looking for

  • HP Envy 17 suddenly goes into hibernation, won't charge past a certain point

    Starting last week my laptop has been experience some battery issues. I noticed first that when it got to around 25 or 30% battery, it would suddenly go into sleep mode (at least, that's what I think it's doing. When I plug it in and turn it back on,

  • How to Upload different Material with Different Selection View

    Hello Experts! Iu2019m new in ABAP and trying to understand methods of LSMW. Now I get a question for you guys. Let say I need to upload 10 different materials. Now for instance. 1st material has Basic data 1 and Basic data 2. 2nd material has Basic

  • Refresh FAST for Materialized View failed after Partition Operation

    Dear all, I have created a Materialized View having a simple join between a Dimension and Fact Table of a Datawarehouse. The MV is REFRESH FAST ON DEMAND. However, when a Partition Maintenance Operation (PMOP) was performed on the Master Tables, the

  • Using off jvm heap as memory area

    Hi, I am using Oracle Coherence 3.6.1 within Oracle CEP. I want to use Oracel Coherence out of the JVM so I want to use nio-memory-manager. My data size more than 10gb and I want to place this data into the memory. How can I perform this by using nio

  • Subscribed calendar deletions not reflected in ical

    Hi, I use webcalendar (http://www.k5n.us/webcalendar.php) as a web based calendar tool for managing my family whereabouts and plans. I have 5 users within the web tool and all 5 users have enabled remote subscriptions. I subscribe to all 5 calendars