Substitution vars in MaxL

I want to ensure that a subst var is around at execution - so i do an "add", which produces an error if it already exists. The server log shows a second error, which says the variable does NOT exist - when it does.I have been ignoring the second error message because the application works. Should I be ignoring it?Is there a MaxL "replace" or "delete" command for substitution vars?Harold

Hi,The same like add variable there is a drop variable in the alter application command. For more information on the command try the technical reference for maxl in the website. Not sure about your variable's scope. But thought this might help you.JG

Similar Messages

  • Can we use Substitution variables in MAXL?

    Hi,
    Can we use substitution variables in MAXL script?
    I have to run this MAXL command for clearing a slice of ASO cube on V11.1.1.3.
    alter database Apname.DBname clear data in region 'CrossJoin({[2009]},{[Dec]})';
    I am planning to use Current_year & Current_month variables instead of hardcoding 2009 & Dec as I have to use this everymonth to clear the current months data.
    If it is allowed, what is the syntax?
    Is there any alternative apart from substitution variables?
    Appreciate your thoughts.
    Thanks,
    -Ethan.

    You would just use ampersand and the variable name instead of the hard coding e.g. &yearVar &periodVar.
    Not tried it on aso clears but in theory it should work as ...'CrossJoin({&yearVar},{&periodVar})';
    just change yearVar and periodVar for your substitution variable names.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Substitution variable IN MAXL

    hi,
    following maxl script is for ASO
    alter database APP.DB clear data in region '{CrossJoin({StrTOMbr(&CURMONTH)},{EOP,ABC})}'physical;
    above script working if CURMONTH="jan"
    but , If CURMONTH= "jan","feb" "mar" then its giving error.
    any advice

    Thanks Glenn,
    I am using STRTOMBR because i am giving values in double quotes("jan")
    But,
    CURMO is Substitution Variable which i am using it in Report Scripts as well. If i give values as [jan],[feb],[mar], then it works fine for MDX but it wont work for Report scripts.
    I have one option to maintain Sub.Variable for MDX separately..but is their any other way to do this

  • Copying substitution varibale using Maxl script

    Hi,
    Ive been trying to copy application using Maxl script in essbase to take backups. Everything gets copied except substitution variables. Could some one help me in sorting out this issue.
    Is there any specific Maxl Command to copy substitution variable alone from one application to another, if so could u please share it with me.
    thanks

    Hi,
    Unfortunately, as John said, there is no command to copy the subvars. One of my colleagues ran into this same issue on one of my projects. He ended up spooling a script with display variable all command to show all your variables and write them to a text file. from there he wrote a batch file to parse the text file for each of the variables, and then updated the subvars in the backup application with these values.
    The thing you want to look out for here is that you want to make sure you properly handle checking for whether the subvar already exists in the backup application. If it does, you just want to run an update of the value. If it doesn't exist, you want to add it first. This is because there is no create or replace variable, so to avoid any errors, you need to be careful with that. I think you may want to look into some of the other alternatives John provided if you are still looking into this issue.
    Thanks,
    Daniel
    http://www.DVEPM.com

  • Calc defined in Web Analysis not working properly with substitution vars

    Hi all,
    Most likely many of you have already faced this, and I would appreciate any guidance. Most likely is a rookie mistake.
    1.- We have a couple of substitution variables in Essbase, CurrYear and PrevYear
    2.- We can see those substitution variables perfectly in Web Analaysis, when designing the report ($CurrYear and $PrevYear) for the Years dimension
    3.- We use this susbtitution variables into a calculation defined in Analysis Tool (i.e $CurrYear:Actual / $PrevYear:Actual) where 'Actual' is the value for scenario.
    4.- The value of the substitution variables is changed in essbase (i.e. CurrYear equals FY10 and Prev Year equals FY09) to update for the current year
    5.- In the reports, whenever we use $CurrYear and $PrevYear, outside a calculation defined in analysis tools, it works properly
    6.- However, the calculations defines as in (3.-) before, do not work. I get 'value not found'
    7. If I 'refresh' the formula in the calculation, by editing it and taking out/reentering the operands again, it now works.
    We have tried restarting Web Analysis services, but we still get the same behaviour
    We have several of this calculations in about 15 reports, so, even while it is manegeable, the idea of using the substitution variables was to avoid this.
    We are using Hyperion 9.3.1
    Thank you in advance to anyone who can point me in the right direction
    Hector

    Hi,
    Oracle support recommended that we apply patch 9.3.1.3, since they were unable to replicate in their environment with said version. After applying the patch, we still have the same problem, they are further investigating.
    Regards,
    Hector

  • Hyperion Report 7.0.1.2 -- use of substitution var that is not a member of outline

    I need to have a variable that tells me the day of the month and the number of total days in the current month for formulas within Hyp. Reports against data in my database. I have stored these values as sub vars which can change daily/monthly as needed.However, I can not see a way to access these in my Report Designer! Does anyone have any tips or other solutions, such a way to access the system date and extract the info needed for my formula, etc? Thanks in advance.

    This problem comes only when you are writing formula on cell level. If possible, put formula at the the column level. i.e. In Column 'C', put formula as [A]-<b>. Now, if you add another column between A & B, formula will automatically change to [A]-[C].This should work unless you have a situation where every cell in formula column is using a separate calculation.

  • Double Quotes in MaxL Strings

    I am trying to pass in a calc script string from a Perl script to a MaxL script. The calc script needs double quotes around some of the member names (yes, I know I can create aliases with underscores to work around this, but I can't believe this isn't possible). I can escape the double quote characters in Perl, no problem. But the double quotes just get stripped by MaxL. Here is an example:<BR><BR>MAXL> echo 'I am "quoting" this';<BR><BR>I am "quoting" this<BR><BR>MAXL> set X = 'I am "quoting" this';<BR><BR>MAXL> echo $X;<BR><BR>I am quoting this<BR><BR>MAXL><BR><BR>There is nothing in the docs about escaping double quote characters. I've tried using backslash, no luck there. I've tried using double double quotes and they all get stripped. I've tried doing this inside single quoted strings and double quoted strings - no joy whatsoever. The funny thing is the example above, where simply echoing the literal string works, but assigning it to a variable strips out the double quotes.<BR><BR>Does anyone know how to get double quotes into a MaxL string variable? There has to be a way...<BR><BR>Thanks,<BR><BR>James

    Yes, I've dealt with enclosing variables in double quotes in order for MaxL to parse them properly, but what I'm trying to do is use a variable that contains a double quote. Such as:<BR><BR> set QuoteVar = 'I am "quoting" this';<BR><BR>I'm trying to set substitution variables via MaxL, and some of my existing sub vars have double quotes in them so that they can be used to store member names that appear in calc scripts. As I said, I know I can accomplish this with an alias table that creates a version of the member name that doesn't need quotes, but that's a whole deal to maintain just for this one thing and it seems overly burdensome for such a simple task.<BR><BR>Also, as I said, MaxL does fine with double quotes in literal strings, it's only when assigned to variables that it always strips them out. I want to create a relatively generic script for setting sub vars, so I need to pass variables around. Just calling MaxL from Perl and passing in parameters that get converted to $1, $2, etc. causes these double quotes to get stripped.<BR><BR>So, is there any way around this?<BR><BR>Thanks,<BR><BR>James

  • Use varialbe as a value in substitution variable

    Hi there,I incrementaly update my cube day by day.And I set a user variable in autoexec.bat to get the current date,eg '2003-06-23'.Could I use such variable as a variable's value in substition variable ?My platform is 6.5 on w2k.Regards,luau

    You can use that in a MAXL script to set the substitution variable.the MAXL script would be something like:Alter database $4 drop variable $5;alter database $4 add variable $5 $7 ;where: $4 is the app.cub $5 is the substitution variable name $7 is the value of the subs. variableRich Sullivan - Beacon Analytics

  • 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

  • Substitution Variable problem in member formula

    I'm using the following member formula for a member in a sparse dimension - Scenario.
    @VAR("Actual",&PO_PriorLE->"Final");
    I can get this to validate in Essbase, but when I try putting it into Planning, the refresh to Essbase bombs and the formula will not validate in Planning.
    Version - 9.3.1
    Thoughts?
    Regards,
    Paul
    Edited by: penglish on May 27, 2009 3:20 PM

    Hi,
    I have just tried it on 9.3.1 patch 10 and had no problems.
    I take it the member assigned to &PO_PriorLE already exists ?
    Have you tried replacing the substitution var for the real member name in the formula.
    What is the error message when you try and validate?
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Calling report from form. Need PDF output

    I am calling a report from a form using RUN_PRODUCT. I need to display the form in PDF format. When the user clicks the button in the form to run the report, acrobat reader should open up and the report displayed there. Please help.
    Thanks

    Thanks for the response. The first part worked. I am able to get the output in PDF format. In the 2nd part where I want to open acrobat and display the output, I am having some trouble with the code. When I compile, it says
    win_api_environment.read_registry must be declared. Is there some package I need to attach?
    Also, in the After reports trigger, how do I pass vFile (I am assuming this is the PDF file name)?
    Thanks
    The first thing you'll want to do is pass parameters to the report IE DESTYPE, DESNAME and DESFORMAT where these could be FILE, 'c:\temp\report' and PDF.
    Then, you can try this piece of code I wrote (with some help from other people at Metalink and here) sometime back. Now, I call it from forms, but in your case, you'd have to run it in the after report trigger. Since with RUN_PRODUCT you don't know when the report is finished, if you did it from the form, it wouldn't work correctly.
    PROCEDURE OPEN_PDF(vFile IN VARCHAR2)
    IS
    vcServerApp varchar2(40);
    vcServerTag varchar2(600);
    vcCommand varchar2(2000);
    iArgPos pls_integer;
    dummy NUMBER;
    BEGIN
    -- 1 get the Server App for .PDF files
    vcServerApp := win_api_environment.read_registry('HKEY_LOCAL_MACHINE\SOFTWARE\CLASSES\.PDF','',true);
    -- 2 get the executable
    vcServerTag := 'HKEY_LOCAL_MACHINE\SOFTWARE\CLASSES\'||
    vcServerApp||'\SHELL\OPEN\COMMAND';
    vcCommand:= win_api_environment.read_registry(vcServerTag,'',true);
    -- 3 Sort out how to specify the Filename
    iArgPos:= instr(vcCommand,'%1');
    if iArgPos = 0 then --no substitution Var on the command line
    vcCommand := vcCommand||' '||vFile;
    else
    vcCommand := substr(vcCommand,1,(iArgPos-1))||
    vFile||substr(vcCommand,(iArgPos+2));
    end if;
    -- 4 Run using Winexec (or Host if preferred).
    win_api_shell.winexec(vcCommand);
    EXCEPTION
    when no_data_found then
    abortt('Acrobat Reader was not found! Please consult with your help desk to install it and try again.','N');
    END;
    Chad
    I am calling a report from a form using RUN_PRODUCT. I need to display the form in PDF format. When the user clicks the button in the form to run the report, acrobat reader should open up and the report displayed there. Please help.
    Thanks

  • What is the "Progid" of Adobe Acrobat reader.

    hi,
    I am trying to work on OLE invoke the Acrobat Reader File through
    ole container, just as to invode and create object for word we are using create_obj('word.application') .
    So the 'word.application' is stored in progid of registroy file.
    So , i am looking for any file which will be used to invoke pdf file , through ole.
    For example :
    for word progid is 'word.application'
    what is for Adobe Acrobat reader

    Here's a piece of code I got from someone else a long time ago and modified to open a PDF:
    PROCEDURE OPEN_PDF(vFile IN VARCHAR2)
    IS
    vcServerApp varchar2(40);
    vcServerTag varchar2(600);
    vcCommand varchar2(2000);
    iArgPos pls_integer;
    dummy NUMBER;
    BEGIN
    -- 1 get the Server App for .PDF files
    vcServerApp := win_api_environment.read_registry('HKEY_LOCAL_MACHINE\SOFTWARE\CLASSES\.PDF','',true);
    -- 2 get the executable
    vcServerTag := 'HKEY_LOCAL_MACHINE\SOFTWARE\CLASSES\'||
    vcServerApp||'\SHELL\OPEN\COMMAND';
    vcCommand:= win_api_environment.read_registry(vcServerTag,'',true);
    -- 3 Sort out how to specify the Filename
    iArgPos:= instr(vcCommand,'%1');
    if iArgPos = 0 then --no substitution Var on the command line
    vcCommand := vcCommand||' '||vFile;
    else
    vcCommand := substr(vcCommand,1,(iArgPos-1))||
    vFile||substr(vcCommand,(iArgPos+2));
    end if;
    -- 4 Run using Winexec (or Host if preferred).
    win_api_shell.winexec(vcCommand);
    EXCEPTION
    when no_data_found then
    abortt('Acrobat Reader was not found! Please consult with your help desk to install it and try again.','N');
    END;

  • Susbtitution Variables in rules file to replace a member name with another

    Hi everybody,
    Can I use substitution variables to replace a member name with another name in rules file?
    Please let me know if we can use substitution vars.
    Essbase version :11.1.2
    Thanks,
    K.as

    Are you the same guy?
    http://www.network54.com/Forum/58296/thread/1287447433/Susbtitution+Variables+in+rules+file+to+replace+a+member+name+with+another+name
    The answer is still, "No".
    Regards,
    Cameron Lackpour

  • Smart View error on Launching Business Rule

    Hi ,
    I am in Planning 9.3.1
    After connecting to Planning Webform from Smartview, i am trying to Launch Business Rule attched to the webform
    Hyperion--> Calculation Option--> Rules on form
    It open the new BR Launching window with all parameter selected in the Webform Page drop down list but when i trying to change the Arguments
    by clicking on the icons or if i am clicking on the Launch button getting following error
    "Substitution Vars XML is malfunctioned, can't initialize dialog"
    any idea or tought on this.
    -KK

    There is an article on this issue on "My Oracle Support"
    SmartView "Substitution Vars XML is malformed, can't initialize dialoge.." Message is Displayed after Clicking on the Magnify Button [ID 752508.1]
    Symptoms
    Error message in SmartView after clicking on the magnify button "Substitution Vars XML is malformed, can't initialize dialog.." is displayed.
    Planning web forms with Business Rule (Runtime prompt) set to "Run on Save". When submitting data in SmartView, it will then open a separate window to allow changes to the run time prompt values.
    Cause
    This issue is caused by substitution variables values containing double quotes or the '&' signs.
    Solution
    This is a noted bug, but the following will help as a workaround to the problem:
    1. Login to EAS as administrator.
    2. Next navigate to the enterprise view.
    3. Select the Essbase Servers.
    4. Right-click on your server.
    5. Select Edit.
    6. Select Variables.
    7. Remove double quotes and '&' signs from substitution variable value.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Extensions install trial versions

    Is it possible to install extensions in trial versions?

    1. On normal restart they are saved to reopen, but on a crash files opened since last restart are lost. I remember there's at least one feature request to recover from crashes on the SQL Developer Exchange though, where you can vote and add weight for possible future implementation.
    2. As said
    3. Don't know, look in Preferences - Shortcut Keys if you find something.
    4. I don't think so, but maybe you can use substitution vars instead (&var will prompt, &&var will remember)?
    5. Can't reproduce.
    6. Check sqldev's homepage: http://www.oracle.com/technetwork/developer-tools/sql-developer/extensions-083825.html
    7. There will always be stuff missing, but best use the online help inside sqldev and experiment.
    8. I suppose you mean look at 2 tables at the same time? Use the red pin and/or Preferences - Database - ObjectViewer - Automatically freeze Object Viewer Windows.
    9-10. There used to be, look closely in Preferences - Shortcut Keys if you find them.
    11. Yes. Next time post different threads to maintain order and incentivate responses.
    Regards,
    K.

Maybe you are looking for

  • Free Goods in Purchasing MBN1

    Dear Folks, I created a condition record for free goods in MBN1. It is an exclusive conditon type where the vendor will give me 1 free item of X for 3 items of X purchased. I am expecting a 2nd line item to appear automatically when I create the 1st

  • How do I stop explorer from opening pop ups while browsing with firefox as default.

    I just bought a new hp laptop with windows 7. The first thing I did was install firefox 3.6.12 set as default, then thunderbird. When I visit a website I get pop ups that open in windows explorer. I installed pop-up stopper free edition, but it didn'

  • Windows 7 wont recognize photos or videos from my iphone 5's.

    Greetings! I pluged both my iPhone 5's into my computer running Win7. Upon being prompted to import pictures it will read "No new photos or videos found". Not even Adobe Bridge will recognize that the phone has importable files. Any idea?

  • Help with longs in byteBuffers

    Ok so bassiclly I want to send a long file over a network in an byteArray, my filesize is stored as a long but im having problems using longs with byteArray. long log = 12; byte[] bytes = new byte[10]; ByteBuffer buf = ByteBuffer.wrap(bytes);     buf

  • Synchronize Several iTunes Libraries

    There are two computers in my house, both having extensive iTunes libraries that need to be synchronized. I have the iTunes music on external hard drives on both machines. I simply eject the HD from the secondary computer and mount it on the main mac