Loading New Substitution Variables with Esscmd Script

Hi, I posted a topic awhile ago and haven't gotten any responses to help. I was wondering if tehre is a script to load NEW substitution variables into a database using an ESSCMD script. The UPdatevariable doesn't work if you don't already have variables in teh database loaded. I need to load them in. THANKS

while I have not had luck with ranges in report scripts, others have. You could have a substitution variable the is "Jun" "Jul " "Aug" or whatever you want the members to be. and it will replace jusr fine

Similar Messages

  • Report script - using substitution variable with multiple values

    Hi All,
    Substitution variable with multiple values is not working correctly with Report scripts. Can you please let me know what is the syntax to assign multiple values to a sub variable using maxl:
    alter database samp.samp set variable 'ExtractQuarter' 'Q1,Q2,Q3,Q4';
    alter database Samp.Samp set variable 'ExtractQuarter' 'Q1:Q4';
    I tried both of the above but they are errored out with the below error:
    Error: 1001005 - Unknown Member [Q1:Q4] in Report.
    my requirement is different for both Actual and forecast data extract so i would like to make use of this variable to extract whole year data for Forecast and current quarter data for Actual with out duplicating the report scripts for both processes.
    Thanks,
    PRaveen

    Hi,
    Please refer following thread,
    range of months in report script?
    Hope it helps.
    Regards

  • 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

  • Try to load new iPad Mini with reserve copy from my iMac

    Hi,
    Try to load new iPad Mini with reserve copy from my iMac coming from my iPhone 4S.
    When selecting the copy I can not find the just made copy from my iPhone 4S.
    I see tree others, but not the latest from iPhone 4S.
    Is there a max on copies showed ??
    Please advise,

    As far as I know there is no limit to the number of backups that you can store in iTunes as long as you have the available storage capacity on the Mac. I have at least 10 or 12 backups in iTunes for my iPad and iPod Touch. Every time that you restore from a backup - a time and date stamped backup is created that cannot be overwritten. I must have 8 of those backups on my Mac.
    Did you look in iTunes>Preference>Devices to see if the backup is really in there?

  • Creating a range with Substitution Variables for Report Script

    Is it possible to create a range with substituion varables for use in a report script. For example instead of listing "Jan" "Feb" "Mar" "Apr" in the report script can I use a sub varaible like Jan:Apr that will list them all out?

    while I have not had luck with ranges in report scripts, others have. You could have a substitution variable the is "Jun" "Jul " "Aug" or whatever you want the members to be. and it will replace jusr fine

  • Assign substitution variable to another substitution variable with truncation of value

    I launch a sql*plus .sql script by way of a concurent job. The concurrent job provides a date paramenter to the script.  Job log shows the date passed to scrpit as:
    Arguments
    2013/09/01 00:00:00
    For cosmetic purposes in the ouput's heading, I want to convert/truncate the character string to an end-user format of 2013/09/01.
    Trying to simply change one substitution variable
    (below is not working, but hopefully telegraphs my intention:
    UnDefine Low_date
    Define Low_date = '2013-09-01 00:00:00'
    UnDefine Low_date_10
    Define Low_date_10 = 'yyyy-mm-ds'
    select substr('&Low_Date',1,10) into &Low_date_10 from dual;
    prompt "Variable value is: &Low_date_10"
    WHICH PRODUCES:
    old:select substr('&Low_Date',1,10) into &Low_date_10 from dual
    new:select substr('2013-09-01 00:00:00',1,10) into yyyy-mm-ds from dual
    Error starting at line 8 in command:
    select substr('2013-09-01 00:00:00',1,10) into yyyy-mm-ds from dual
    Error at Command Line:8 Column:55
    Error report:
    SQL Error: ORA-00905: missing keyword
    00905. 00000 -  "missing keyword"
    *Cause:   
    *Action:
    old:prompt "Variable value is: &Low_date_10"
    new:prompt "Variable value is: yyyy-mm-ds"
    "Variable value is: yyyy-mm-dd"
    "I need to get to "Variable value is: 2013/09/01"

    Hi,
    SELECT ... INTO only works in PL/SQL.
    In SQL*Plus, you can use COLUMN ... NEW_VALUE, like this:
    DEFINE  low_date = '2013-09-01 00:00:00'
    COLUMN low_date_10_col        NEW_VALUE  low_date_10
    SELECT  REPLACE ( SUBSTR ( '&Low_Date', 1, 10)
                    )    AS low_date_10_col
    FROM  dual;
    PROMPT  Variable value is: &Low_date_10

  • Financial Reporting (FR) using Substitution Variables with Quotes

    HI all,
    I've created a substitution variable, &CurWk, for a Period Dimension member. The member name, Dec Wk2, has an embedded space, so I enclose the member name in quotes when assigning it to the substitution variable in EAS. However, when I try to use that substitution variable in Financial Reporting, it does not recognize the Substitution variable. I've closed down and re-opened the FR Studio. If I remove the quotes around the member name when assigning it to the Substitution Variable, then FR will recognize the substitution variable. However, I get an error in the calc scripts if I try to reference the substitution variable if this member name is not enclosed in quotes. In my mind, this seems to be a bug in FR since quotes can be optional when referencing any member name. Has anyone else had this problem? Is there a work-around? I'm using EPM 11.1.1. Thanks for your help!
    Vince Kelly

    Hi Vince,
    For the Calc scripts add & to the front of the sub var and surround the sub var with [ ], for example:
    where sub vars are ReptQTR, ReptYR, ReptScenario:
    CASE
    When (Is(QTR.Currentmember,[&REPTQTR]) and (IS(FY.Currentmember,[&REPTYR]))) then
         CASE
         When ((ISUDA(L000.CurrentMember,"NC"))) then
              CASE
              WHEN (ISUDA(L000.CurrentMember,"Expense")) THEN
              (([&REPTPYR],[ACT]) - [&REPTSCENARIO])
              ELSE
              ([&REPTSCENARIO] - ([&REPTPYR],[ACT]))
              END
         END
    END
    Edited to fix stupid html codes: Iain Curtain on Feb 1, 2010 5:44 PM

  • Issue with substitution variable with @MDSHIFT in BR in Calc Manager

    Hi Experts,
    We have a BR in EAS which is working fine.
    and exported to Calcmanager, now while validation it is giving error "@BaseScenario" is not found.
    the code is
    @MDSHIFT("LFLSalesIncVAT_GBP_C_DHP"->&BaseScenario->"Final"->"CD_FinalPlanPL",-1,"Year",,1,"Period",);
    if i hard code it like @MDSHIFT("LFLSalesIncVAT_GBP_C_DHP"->"P7PP"->"Final"->"CD_FinalPlanPL",-1,"Year",,1,"Period",); working fine.
    is there any limitation with calc manger and substitution variables?
    Thanks
    GP

    There seems to be many issues with validations in calc manager, does the rule run if you dont validate.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Web Forms using substitution variables with multiple values

    Hi,
    I am trying to select a substitution variable in a webform (Hyperion Planning 11.1.1.3) with multiple values in EAS, but is not working does somebody knows if this an expected behaviour.
    I allready try ex.
    &Months = "Jan","Feb", "Mar"
    &Months = Jan, Feb, Mar
    &Months = Jan:Mar
    Please let me know something, since as far as I recall in previous versions of Hyperion Planning this was possible.
    Kind Regards

    We experienced the same issue, our requirement was that for the first half of the year the substitution variable was = Oct and for the second part of the year Jan:Dec. We were lucky that for the second scenario we had a Total Year member as well (that at the bottom level is Jan:Dec). So on web form we picked Level0 descendants of the substitution variable. That worked fine but not the range.

  • Problem with ESSCMD script

    I have been given two Esscmd scripts to convert into MAXL.
    The first ESSCMD script clears all the data and dimensions,reloads all the dimensions and data and fianlly runs Calc all command.
    The second script clears the period dimension and runs the calc all command.
    These two scripts are run for the same database in sequential order.
    My question is
    Does the database loses all the data when a dimension is cleared and built again?
    If yes,the database is having data after the second script is run.
    Please help

    If the dimension is deleted (using remove unspecified and rebuilt in the same MaxL or Esscmd satement then data will be retained for member that still exist. As for converting from Esscmd to MaxL the easy way to do it is to look for a file called cmd2mxl.exe on the server. It will convert Esscmd scripts into MaxL and tell you if there are any issues with the conversion.

  • [SOLVED] Change environment variables with Shell scripts

    How can I change the "BROWSER" environment variable with a shell script; so I can change it on the fly?
    Last edited by oldtimeyjunk (2012-10-31 12:57:42)

    If you just want to do it for BROWSER so that you can change your default web browser on the fly, you could set BROWSER to e.g. ~/bin/mybrowser and create a symlink to the browser you want at ~/bin/mybrowser. Then you could change the symlink at will.
    EDIT: man xdg-settings
    Last edited by cfr (2012-10-31 02:20:16)

  • Using substitution variable with multiple values in Maxl Command

    Hi All,
    Is there any option to use multiple values in 1 substitution variable and use them in a Maxl command.
    alter database $app_name.$db_name clear data in region '{CrossJoin(CrossJoin(CrossJoin({StrTOMbr(&Months)},{XXX, YYY}),{StrTOMbr(&CURYR)}), {ZZZ})}'physical;
    In the above case
    Maxl is not working if I have multiple months in &Months Substitution variable.
    Let me know if there is an alternate option to implement this.
    Thanks
    Sathish

    What is the value of &Months?
    If you put that exact value into the code, does it work?
    Regards,
    Cameron Lackpour

  • I load a PHP variable with Loadvar and...

    Though I described my problem... I am importing a PHP var, it
    loads perfectly the first time, but then it keeps the same value
    and I need to load the new value each time I go the page contains
    the code..... any suggestion please ? It is very urgent, thanks in
    advance,

    The thing is you'll need to refresh your cache so that it
    reads the updated valur of your php value. There is a quick work
    around / hack to this:
    Whenever you load your php script just add a simple time
    based extra value to it, it won't change the way the script works,
    but it'll make the movie think its loading a different file
    everytime, so ther won't be any mistake:
    var d:Date=new Date();
    LoadVarsObject.load('file.php'+d.getTime());
    Cheers,
    Gorka
    www.AquiGorka.com

  • Loading new curves into report via Script

    Hello everyone!
    I tried the following to add a curve into a report via VBS-Script
    Call GraphObjNew("2D-Axis","MyGraph")
    Call GraphObjOpen("MyGraph")      
      D2AXISSYSTEM     ="one system"
      Call GraphObjNew("2D-Curve","MyCurve")
      Call GraphObjOpen("MyCurve")
        D2CCHNXNAME      ="Eigenschaften/Zeit"
        D2CCHNYNAME      ="Eigenschaften/Geschwindigkeit"
      Call GraphObjClose("MyCurve")
    Call GraphObjClose("MyGraph") 
    Call Picupdate()
    The Script runs without errors, but the Curve won't be added into the 2D-Axis Object. Does anyone know how to solve this problem?

    Hi Robert,
    Wenn I modify your code ever so slightly to operate on the channels I have in the Data Portal, and then execute the code in DIAdem 10.2, it works perfectly for me:
    Call GraphObjNew("2D-Axis","MyGraph")
    Call GraphObjOpen("MyGraph")      
      D2AXISSYSTEM     ="one system"
      Call GraphObjNew("2D-Curve","MyCurve")
      Call GraphObjOpen("MyCurve")
        D2CCHNXNAME      ="[1]/[1]"
        D2CCHNYNAME      ="[1]/[2]"
      Call GraphObjClose("MyCurve")
    Call GraphObjClose("MyGraph") 
    Call Picupdate()
    Of course, it creates a tiny little graph in the upper left hand corner of REPORT, which is probably not exactly what you want, but it is what you're asking DIAdem to do for you with the code.  I assume this is not happening for you.  What version of DIAdem are you using?
    On another note, I'd actually encourage you not to create the 2D-Axis programmatically, but rather to configure its location and appearance by hand and save a *.TDR file, which you can then load with PicLoad() or PicFileAppend().  If you leave off the first line of your code, the rest of it will then programmatically add curves and configure them as you wish.
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments

  • Peculiar problem with Essbase (Calc Script) - substitution variable / UDAs

    This is odd but I have a script like :
    VAR iloop=1,break=0;
    FIX(<required POV>)
    Loop (20,break)
    VAR Country_total1,Country_total2,Country_total3;
    FIX (@UDA(Entity,@ALIAS(@CONCATENATE("&Country",iloop)))) // &Country1, &Country2 - are substitution variables with UDAs stored as strings
    Statements;
    /* +<statements for calculating total values.. for that country and stored against variables>+ */
    Country_total1=Country_total1+ +<Calculation>+
    ENDFIX
    /* Second part : Now again the calculations stored in the variables are to be stored against specific entities */
    FIX (@UDA(Entity,@ALIAS(@CONCATENATE("&Country",iloop))))
    FIX(@ISUDA(Entity,<Check1>)
    ..... Assign to relevant account
    ENDFIX
    ENDFIX
    ENDLOOP
    ENDFIX
    Now the problem is that the first fix statement works just fine, but the FIX statement in the 'second part' throws an error
    Error: 1200354 Error parsing formula for [FIX STATEMENT] (line 66): expected type [STRING] found [EXTVAR] ([iloop]) in function [@CONCATENATE]
    If I hard code the 'second part' FIX statement to the substitution variable directly - it works just fine.
    How can the first statement work and not the second one ? They are exactly the same.

    Glenn, thanks - I hadn't thought of that :).
    But it still does not entirely solve my problem (please see my previous post depicting a requirement similar to ours )
    - We have lots of countries (50-60+ might be much more) and each country can have multiple entities (3-4 on an average - can go unto 7-8)
    - so good guess would be around 200 entities
    - So say I have to do it for 2 countries only (two entity types). Then I need 4 variables - 2 for each country ('country 1 ET1 total', 'Country 1 ET2 Total')
    When the list is 20 counties - variables become 40 :(.
    - Still leaving aside the 40 variables for a bit -
    There are subsequent steps of calculations which needs to be done based on these totals (which are exactly the same for all countries) - just that we need the correct totals to begin with and the rest is already stored in the DB
    So since I have a different variable for each country - I cannot write one single calculation block to use the variables sequentially one by one (can I ?)
    I might have to write a separate calculation block for each of these countries. (20 separate blocks)
    That's what I was trying to avoid and simplify with the substitution variable (but is not working)
    - Create substitution variables - which would store the alias of the required countries (2/10/20 as many required)
    - Loop through these substitution variables - using them one by one
    - So I just need one single block of calculation with all the variable in the calc script being reused after each country calculation is done
    - and the user need not go into the script, as the only thing that will change are the countries. And he can change it easily through the substitution variable.
    Edited by: Ankur on Jun 27, 2012 12:53 PM

Maybe you are looking for