Cahnge the date  dynamically in Maxl script

Hi All,
I am excuting one max for clearing the data for particuler cells it s ok
It will work for 9th month but next month it will not work until i dont change the value manually
Dynamically i need to change
alter database 'ACCOUNT'.'account' clear data in region '{([2010.09],[Actual])}' physical;
how can i do this , any help would be appriciated..

I think he wants to avoid updating anything manually though?
you should be able to:
a. Build the date/string in a batch file.
b. pass that date/string to the maxl script as a paramter
c. use the parameter in your alter database script
I have also seen people rebuild the entire maxl script each month from a skeleton in another text file or a database but thats probably over complicating.
You could also use that variable to update a substitution variable

Similar Messages

  • Clear the data region using Maxl

    Hi,
    I am trying to clear the data region using Maxl query, I am getting error like: Dynamic members not allowed in data clear region specificaion.
    +alter database 'PGSASO'.'ASOPGS' clear data in region 'CrossJoin(CrossJoin({[Actual]},{[FY11]}),{[Inputs].Levels( 0 ).Members})';+
    (Inputs( not a dynamic member, parent of this meber is a dynamic) comes under Account dim).
    I have tried the below code also(Syntax error in input MDX queryon line 1 at token ',').
    alter database 'PGSASO'.'ASOPGS' clear data in region 'CrossJoin([Inputs].Levels(0), CrossJoin({[ACT]},{[FY11]}))';
    Can anyone do let me know if there is any syntax error or alternate function would be available for clearing level-0 members/descendants under Dynamic parent...
    Thanks,
    Bharathi

    There is no syntax error in your statement. The problem is you input dimension(I guess) has some members with formulas on them and the clear statement does not allow those members to be in the clear. Ther ware a couple of ways around it. seperate out the members with formulas under a different parent and then modify the crossjoin to only pick up the level zero members that are not in that parent or you could put a UDA on formula members and use the exclude command to exclude anything with that UDA

  • How to print the data Dynamically in smartforms

    Hi Experts,
    I need to print the data dynamically in different windows on the same page.For example in the first window 25 records,2nd window 25 records and 3rd window 25 records.I need it dynamically.How to achieve this?

    Hi,
    If you have an internal table which fetches the data... Then you can have table in each window and in the data tab give from row and to row values to display how many records and from where to where you want to display.
    Regards,
    -Sandeep

  • Can i change the database connections through MAXL Scripts?

    Hi,
    just want to know whether i can change the database connections through MAXL Scripts. i am using essbase 9.3.1.

    Hi John,
    I have built my rulefile by connecting to a database & now i want to change the database connections. I know i can change the database connections through frontend. ( File--> open file). I want to know whether i can change the database connections by writing any MAXL Scripts.

  • How can we enter the data dynamically from datagrid to an arraycollection?

    Hi All
                        How can we make datagrid fields editable when it is in empty position i mean the datagrid doesn't have any data to display.. and it must accept the data and update the arraycollection dynamically..
                 Now in my Application the datagrid is empty and it is not accepting any values and it still remain ideal..  i am unable to edit the datagrid fields in the datagrid .....
      Please some one tell me how can i achieve this...

    Here is a very basic example.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="onCreationComplete()">
    <mx:Script>
      <![CDATA[
       import mx.collections.ArrayCollection;
       [Bindable] private var _dataProvider:ArrayCollection;
       private function onCreationComplete():void {
        _dataProvider = new ArrayCollection();
        for(var i:int = 1; i <= 100; ++i)
         _dataProvider.addItem({ROW:i,A:"",B:"",C:"",D:"",E:"",F:"",G:"",H:"",I:"",J:"",K:"",L:"", M:"",N:"",O:"",P:""});
      ]]>
    </mx:Script>
    <mx:Panel title="Editable DataGrid Example" height="472" width="584" horizontalCenter="0" verticalCenter="0">
      <mx:DataGrid id="dg" width="100%" height="100%" rowCount="5" dataProvider="{_dataProvider}" editable="true" horizontalScrollPolicy="on" sortableColumns="false" draggableColumns="false">
       <mx:columns>
        <mx:DataGridColumn dataField="ROW" headerText="" width="30" sortable="false" draggable="false" editable="false" paddingLeft="0" paddingRight="0" textAlign="right"/>
        <mx:DataGridColumn dataField="A" headerText="A" width="100"/>
        <mx:DataGridColumn dataField="B" headerText="B" width="100"/>
        <mx:DataGridColumn dataField="C" headerText="C" width="100"/>
        <mx:DataGridColumn dataField="D" headerText="D" width="100"/>
        <mx:DataGridColumn dataField="E" headerText="E" width="100"/>
        <mx:DataGridColumn dataField="F" headerText="F" width="100"/>
        <mx:DataGridColumn dataField="G" headerText="G" width="100"/>
        <mx:DataGridColumn dataField="H" headerText="H" width="100"/>
        <mx:DataGridColumn dataField="I" headerText="I" width="100"/>
        <mx:DataGridColumn dataField="J" headerText="J" width="100"/>
        <mx:DataGridColumn dataField="K" headerText="K" width="100"/>
        <mx:DataGridColumn dataField="L" headerText="L" width="100"/>
        <mx:DataGridColumn dataField="M" headerText="M" width="100"/>
        <mx:DataGridColumn dataField="N" headerText="N" width="100"/>
        <mx:DataGridColumn dataField="O" headerText="O" width="100"/>
        <mx:DataGridColumn dataField="P" headerText="P" width="100"/>
       </mx:columns>
      </mx:DataGrid>
    </mx:Panel>
    </mx:Application>
    Hope this helps

  • "End of file breaks the statement" on "working" MaxL script

    Sorry, multipost accidentally. Look for post that is a question...
    Edited by: Kevin Cox on Dec 4, 2010 2:52 AM

    Different operating systems? Perhaps its not the maxl script but a parameter that gets passed in from the batch script? Certain things change such as the system time variable between operating systems. I remember that caught me out although I wasn't doing anything to do with essbase at the time.
    I'm 99% sure this error is generated from the maxl interpreter
    e.g. Just created test.mxl and all I put in there was the word login followed by a single unclosed quote and the followingf happen.
    D:\Qubix>essmsh test.mxl
    Essbase MaxL Shell - Release 11.1.1 (ESB11.1.1.2.0B110)
    Copyright (c) 2000, 2008, Oracle and/or its affiliates.
    All rights reserved.
    MAXL> login '
    essmsh error: End of File breaks the statement
    MaxL Shell completed
    D:\Qubix>
    Edited by: Daniel Willis on Dec 6, 2010 2:57 PM

  • How to partition the data dynamically

    Hi,
    I've the data which goes on increasingly day by day. So, for the sake of performance i wanted to go for partitioning. i want to divide the data into partitions by months. How can i acheive this one. I do not want to hard code it to the year like 2007 or 2008 like this.The problem with the hard coding is again i've to make it to 2008 in the next year.
    Regards,
    Alok Dubey

    Long ago have tried something like that:
    Create Procedure:
    BEGIN
    1. looking for you date
    2. If date … then
    3. EXECUTE EMEDIATE ‘create partition ….’
    EXECUTE EMEDIATE ‘create partition on idex….’
    4. Drop old partition if needed
    END
    Setup scheduler for you procedure

  • How can I get the data and store the data dynamically generated?

    When I entered an order, after the information for the order has been filled in, an order number has been generated dynamically. I want to record this number to my databank.
    The questions are, 1\how can I record the order number? 2\How can I write it back to my databank?
    I noticed Openscript_User_100 had asked the similar question, the post is here,
    Openscript - How to save data to Data bank at runtime
    Openscript - How to save data to Data bank at runtime
    Can Openscript_User_100 or somebody else be more specific on how to do that?
    Can I use the forms.textField.storeAttribute to do that? Where can I find the example for forms.textField.storeAttribute?

    Thanks aamat!
    I tried to look for the orderID in the detail pane HTML, I only have a screen shot in the Detail pane (Is this Detail Pane found in View-Details?) I can see the orderID on the screen shot (there is no other tab Screenshot is the only tab) but I cannot select it and replace it with variable.
    The only place I can select the orderID is in the Java Code,somehow the orderId is recorded there. Please see the code below.
    (I changed"[" to "{" in order to show the code correctly)
    beginStep("{11} Sales Orders (15371) - XXXX Customer", 0);
              forms.captureScreenshot(229);
                   think(8.39);
              forms.textField(230, "//forms:textField{(@name='ORDER_SOLD_TO_0')}")
                        .setFocus();
                   think(0.812);
              forms.window(231, "//forms:window{(@name='ORDER')}").selectMenu(
                        "Tools|Scheduling");
         endStep();
    Can you advise further?
    Edited by: DorothyLi on Dec 15, 2009 11:21 AM

  • How to change the font dynamically in SAP script

    Hello,
    There are three fields for a line item to be printed in SAP form (Through Script). The font of one field has to be bigger than rest of the two.
    Can anybody tell me how to change the font of a specific field in a line of an SAP-script?
    Regards
    Kiran

    Hi,
    Its like any other character format. you can have any field with a character format.
    --Ragu

  • How to add the data dynamically in data grid

    Hi,
    I got a stuck up in using JSF as I am trying to retrieve a value of a text box on clicking a button in the datagrid.
    Please suggest me a solution for his

    Please consider filing bugs in Jira at [http://javafx-jira.kenai.com|http://javafx-jira.kenai.com/]. Without your bugs being filed there is no guarantee we'll know to fix them! File them against 'runtime', for the 'control' component, and they'll turn up in my inbox.
    Thanks,
    Jonathan

  • Convert XML to MaxL script

    Hi all,
    I have over 50 load rules file for SQL data load. I have saved them to an XML file using "Administration Services Console".
    Can i convert the XML file to MaxL script?
    Thanks and Best Regards,
    Henry

    I tried it, but does not play, remains stopped in the first frame.
    /* js
    var tl=this;
    myFunction();
    function myFunction() {
    tl.gotoAndPlay(Math.floor(Math.random() * 150) + 2);

  • How to refresh the data in published HTML?

    Hi All,
    I have created a Process Engineering diagram, whcih represents flow of material from Equipment to another equipment.
    I have binded the diagram to data from the data base and saved/published as HTML to view it in browser. So far it is fine.
    But the next step is: What happens when the data changes in the data base? The generated HTML became just a static diagram which is of not much use. If i want to refresh the data, then I need to publish again !!
    Is there a way to make service calls from HTML and update the data dynamically in HTML display?
    Note: I am using VISIO 2013 Professional edition
    Venkat

    Hi,
    If we had saved/published Visiso drawing as HTML file, we could not refresh the data source to control the HTML data directly. We need to re-publish, I think you do not want to do it.
    Thus, I recommend you use JavaScript or coding to invoke and refresh the background database when you modified it.
    The following artile may also help you:
    http://www.mathworks.com/help/matlab/ref/refreshdata.html
    If you have any question related to Programming/Code, post in HTML forums for further assistance.
    Regards,
    George Zhao
    TechNet Community Support

  • Running MaxL scripts

    I was helping a client with automating the running of a MaxL script, using the Windows AT command, and we encountered something odd: a MaxL script that runs fine in EAS does not run correctly when invoked programmatically.This seems to occur when the script involves path references (for error file locations, etc.). Surrounding the path (which had no spaces or "funny" characters) with single quotes works in a script that is to be run from the EAS console.However, when the script is run programmatically (through a batch file, or the AT command), it seems that you have to surround paths with--get this:First: single quotes, to denote the stringSecond: double quotes (outside the single quotes), for a reason a can't quite put into wordsThird: the backslash character used in Windows path references is an escape character in MaxL, so to actually refer to a backslash, you have to use two of them in a row.So, the path used in error writing was originally written in the script like this: 'D:\Errors\DimBuild.err'...and to run programmatically, it had to be:"'D:\\Errors\\DimBuild.err'"...and the problem is, the latter example will NOT run from EAS. Has anyone else encountered this issue?Jared

    I've found that to use a windows path in MAXL, I've found by trial and error that the form that works is'\\\\server05\essbase\buddb\budapp\dataload.txt'Don't know why, but the double backslashes preceding the server need to be escaped, but the subsequent ones don't. I discovered this by trial and error and carefully reading error output.And of course shell statements don't work from EAS.

  • MAXL SCRIPT TO EXECUTE IN BACKGROUND THE DATA LOAD

    Hi,
    I have problem with a MaxL script, I don´t know the command to execute a data load in the background, someone knows??? it would be very grateful if you can help me because now I have to load the data manually and then tick execute in background.
    Thanks for your help
    Regards,

    If the two processes are in no way dependent on each other, why not just use two separate MaxL scripts and run / schedule them separately?
    If you really need to launch multiple MaxL operations against different cubes to run in the background from a single script you can only do this with a shell / command script, not 'natively' in MaxL. If you're on Windows and using CMD, for example, see the 'START' command.
    --EDIT: Crossed over with Sunil, think he pretty much covers it!                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Please give the maxl scripts for export data in ASO

    i think we have to use some report file ,please give the report file script and give the full statement of maxl to export data

    There's a couple of ways to do this.
    What version of Essbase are you using?
    Do you want all the data exported or only a subset?
    Brian Chow

Maybe you are looking for

  • Single quote in url

    We are using the following configuration in our env... Sun web server 6.1 - webserver Sun appserver 9.1 EE -application server the application server instances are configured with the webserver via loadbalancer plugin. If the url contains single quot

  • WM:Picking Scenario - Need Help

    Hi, The scenario is, we got a sales order for 25 cases and delivery created for 25 cases. As per material master, 1 Pal=10 Cas. So in the WM transfer order, it should pick 2 pal from the regluar storage bin search and remaining partial qty [5 cas] fr

  • Anyone tried to install Aperture on older G5/G4?

    Has anyone tried to install Aperture on an older PowerMac G5 or PowerMac G4 that **has been upgraded** to a compliant graphics card? If anyone has had success in this regard and has done so on a PowerMac G4, could you also indicate whether or not you

  • Error when using the template installer MI post installation process

    Hi all, I am busy to configure the Netweaver Administrator in order to create setup packages for mobile devices. This is a WAS 6.40 ABAP JAVA instance with mobile infrastructure. I have installed the netweaver SR1 and upgraded abap and java to SPS18

  • Indicator for third party vendor

    Hi, I would like to know how to create third party vendor in SAP. Is there any indicator that indicate that the particular vendor is third party vendor? Please advise. Thanks.