MaxL Parameter

I am trying to pass a parameter to a MaxL script. Can somebody take a look at this and throw me a bone?The parameter-less script is below, but this is what I am trying to do. I want to pass the month to the create partitioncreate or replace transparent partition 'Jan04Sc'.'EpicSem' area ....If I do this:$104Sc, I get exactly thatIf I do this:$1 04Sc, I get Jan 04ScWhat I need is "Jan04Sc", no spaces!create or replace transparent partition 'Jan04Sc'.'EpicSem' area spool on to 'c:\create_partition.log'; login 'e013764' 'sampson' on 'epic.bankone.net'; create or replace transparent partition 'Jan04Sc'.'EpicSem' area '((@UDA("Value Field","EPICbs") AND @IDESCENDANTS("Value Field")) OR (@UDA("Value Field","EPICnii") AND @IDESCENDANTS("Value Field")) OR (@UDA("Value Field","EPICoth") AND @IDESCENDANTS("Value Field"))) @IDESCENDENTS("CY Act")'to 'Jan'.'EpicMain' at 'epic.bankone.net' as 'e013764' identified by 'sampson' area ' ( (@UDA("Value Field","EPICbs") AND @IDESCENDANTS("Value Field")) OR (@UDA("Value Field","EPICnii") AND @IDESCENDANTS("Value Field")) OR (@UDA("Value Field","EPICoth") AND @IDESCENDANTS("Value Field"))) @IDESCENDENTS("CY Act") "Jan"' mapped globally ('') to ('"Jan"') ;

Try "'$P04Sc'", where P is the parameter

Similar Messages

  • MaxL Pass parameter zu create substitution variable

    Hi everybody,I'm trying to pass a parameter from a DOS batch file to a MaxL script to create a substitution variable with that parameter.DOS batch file:...set var_version = "Final Version"essmsh Test.msh %var_version%MaxL file:....alter application TEST set variable SUBST_VERSION $1=> the substitution variable should be "Final Version" (incl. double-quotes because of the whitespace in the variable's value), but in fact, the substitution variable will be "Final" (without any double-quotes; they have been stripped by MaxL!?)=> if I don't use a parameter it works:alter application TEST set variable SUBST_VERSION '"Final Version"'=> I tried the following statement to keep my double-quotes, but the parameter won't be expanded then:alter application TEST set variable SUBST_VERSION '"$1"'So, does anybody know how to pass a parameter containing whitespaces to create a substitution variable within a MaxL script?Thanks for your hints!Marc

    Hi,Try this one:1. Create batch file which will produse you a whole MAXL statement. This can be done with > or >> statement at the end of the commanad.E.g.: whole_command_with_"Final" >> to file.txt2. Execute maxl with above generated file.Hope this helps,Grofaty

  • Parameter aus eine *.bat Datei in MAXL Script

    HAllo,
    wie kann ich Paramert die ich in einer BAT Datei abfrage an ein MaxL Script übergeben? Wie z.b. Servername, Userid Password ....

    Hallo,
    In dem du Variablen in dem MAXL Script benutzt.
    z.B.
    export database $1.$2 all data to data_file $3;
    Exportiert die Datenbank $2 der Applikation $1 in die Datei $3.
    Dieses MAXL Script wird via essmsh aufgerufen und dort werden dann die Parameter in dieser Reihenfolge übergeben. Sie stehen hinter dem MAXL-Script.
    z.B.
    start essmsh.exe -s Server -l User Password MAXL-Script Applikation Datenbank 'Dateiname'
    Es kann auch ain vollständiger Pfad angegeben werden, essbase braucht dann natürlich Schreibrechte dort, wird eine Netzwerkfreigabe verwendent so sind 3 Blackslash am Anfang notwendig, warum weiss ich auch nicht aber es funktioniert.
    Hoffe mal das das weiterhilft

  • 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

  • Parameter tuning - DLThreadswrite DLThreadprepare

    To improve the data load performance, we should increase the parameter DLThreadwrite and DLThreadprepare.
    However I read from Oracle documentation it seems that the parameter only apply to BSO instead of ASO. Any other parameters can be used to improve ASO data loading?
    Thanks!

    GlennS_2 wrote:
    Perhaps I mistakenly thought that both those parameters seemed to help ASO performance. One thing you can do (If you are on EPM 11 or 9.3.1) is to use multiple data laods at the same time into different load buffers and then commit them together. It willrequire you using multiple MaxL scripts, but is quite doableThanks for your advice. I also checked Oracle documentation that we can perform data load in parallel using different buffer ID to improve the performance. However it requires some changes on the application design to break down the data load into several batch script.

  • Wildcard in MaxL Script??

    Can you use a wildcard in a MaxL script to find a file in a specific location?
    Example>>
    import database app.database data
    from local text data_file 'C:\HyperionDataFiles\dataload*.dat'
    using rules_file 'C:\hyperion\AnalyticServices\app\app\database\dataload.rul'
    to load_buffer with buffer_id 15
    on error write to 'C:\hyperionerrors\dataload.err';
    In would this find any file with the dataload name?? Ie dataload_today.dat??

    You don't mention the operating system, but I would create a single maxl statement to load a file as it's own script. In the script, I would use a variable to represent the file name. Then in the calling batch or shell script, I would find the actual file name and pass it as a parameter to the script. If there are multiple files that match the criteria, I would loop through each file and pass it. (of course, after I was done, I would move the files to a histroy folder so I didn't process them again.

  • Maxl embedded double quotes

    Hi, I cannot find out how to embed double quote in a shell variable.I'm using Essabe v 6.5.1, Maxl build 122(in fact it is IBM DB2 Olap 8.1/Fix1)on AIX (with DB2 UDB v 7.1).Example: set var='"P1"';gives P1 as the content of the var variable; the content should be "P1"(with double quotes); I've tried with all combinations ofsingle and double quotes, slash and backslashes bud didn't succed.I you have answer to this, you don't need to read the rest of the post*because, my main goal is to create filter using position parameter variables which contains numericcharacters. For example: maxl -a 028Now, the content of $1 is 028and I'm trying to create filter:create filter app.db.flt_name read on "'$1'";but I get an error; if $1 containsalpha character (e.g. P1) everything isOK); If I use constant:create filter app.db.flt_name read on '"028"';it is also ok (note, now single quotes are going the first and double quotes follow)I suppose, if there is a way to embed double quote in a variable then I could resolve this filter creation problem.Thanks & Regards

    What shell are you using. When I try this with ksh (omitting set), it works.>var='"P1"'>echo $var"P1"Jerry Ursetti

  • MaxL statement for substitution variables

    Hi,I'm trying get a script together that changes all my substitution variables, and I'm able to do this using:alter database application.database set variable string;but how do I set the substitution variables for (all apps) and (all dbs)?Any help appreciated.ThanksSunil

    I don't think MaxL is going to do this for you, although you could always use a positional parameter to set the value.
    I'm not a big fan of passing the system date to an Essbase process as it so often varies from the data date.
    Usually, I create an external scripting process (in my case, in the past, usually VBScript, I would probably tilt towards perl now) that read the file, found the year and month, and then called the MaxL with parameter lne variables to set the Substitution Variables. This is not fancy code -- the error checking is the majority of the work.
    Regards,
    Cameron Lackpour

  • MAXL Script Feasibility....

    Hi All,
    Am aiming to load the data into Essbase Cube using CSV Files through IMPORT command in Maxl using 4 Different CSV Files.
    I can do it this way..
    1) we can have four statements of IMPORT cmd for Four files in one maxl script and it is ok
    Now my question here is, can we introduce any loops/conditions in Maxl for selecting the four files within loop for only one IMPORT cmd..The advantage am looking at is if any new file come into picture i need not modify anything related to statement.
    Viz., CSVLOAD_2005, CSVLOAD_2006...are CSV Files
    and i want to take CSVLOAD* and take it in the statement
    Hope you understand the logic
    Thanks

    Here's the Tech Ref entry: http://download.oracle.com/docs/cd/E10530_01/doc/epm.931/html_esb_techref/maxl/ddl/utils/shell/syntax.htm#positional
    Positional parameters are command line params, they are referenced by $1, $2, $3, etc., with $1 = the first command line parameter, $2 = the second, etc.
    I use them all the time; they are quite handy.
    In your example, you might have four lines (or in a scripting language, an array/collection of values that get looped) with the data files you want to pass into MaxL, e.g.:
    essmsh maxlscriptname.msh CSVLOAD_2005
    essmsh maxlscriptname.msh CSVLOAD_2006
    etc.
    In your MaxL script, you can simply use:
    import database app.db data from local data_file $1 using rulename on error write to errorfilename ;
    If you wanted to get fancy and pipe any data errors to different files you could create a second positional parameter and use that in place of the error file name.
    Regards,
    Cameron Lackpour

  • Kill Session with MaxL

    Hi all,
    I need to do a script to kill sessions with Maxl with more than 8 hours of activity, no matter what they are doing.
    The problem is that some sessions are hangs and logout don't work, also not work 'set session_idle_limit' parameter.
    Sorry for my english, i'm from Spain. Best regards.

    I have a thought on this, as the MAXL script can be automated using essmsh command in batch script. What I will do is run the script for the MAXL script to do following :- "display session on database app_name.db_name"; say now, spool the output to filename1 and schedule the next execution of this script as required say after 8 hours and spool the output to filename2.
    Then I will compare the contents of the both files and if any matching records exists for the user, that is the one who is active on database for more than 8 hours.
    Hope this solves your requirement..

  • Passing parameter to a DataObject

    Is it possible to pass a parameter to a DataObject, and if so, how?
    Brad

    Hi,
    If you want to pass parameters to your ESSCMD script, you need to encapsulate it within a shell script with Unix or a DOS batch command file.
    For Unix, let's say you create shell script test.sh
    #!/bin/sh
    ESS_SERV = $1
    ESS_USER = $2
    ESS_PASS = $3
    APP_NAME = $4
    DB_NAME = $5
    ESSCMD_FILE = /tmp/example.scr
    ESSCMD_SPOOL = /tmp/example.out
    ESSCMD_ERR = /tmp/example.err
    # Esscmd script
    echo "
    LOGIN \"$ESS_SERV\" \"$ESS_USER\" \"$ESS_PASS\" \"$APP_NAME\" \"$DB_NAME\";
    ... the different command you want to run
    " > $ESSCMD_FILE
    # Execute esscmd script
    ESSCMD $ESSCMD_FILE &> "$ESSCMD_SPOOL"
    To run it, you would on a Unix prompt do this :
    #> ./test.sh localhost test essbase demo basic
    However, with Maxl It will be a bit easier, as you would define your shell script this way
    #!/bin/sh
    ESSMSH_FILE = /tmp/example.scr
    # Essmsh script
    echo "
    login $1 $2 on $3 ;
    ... the different command you want to run
    " > $ESSMSH_FILE
    # Execute esscmd script
    essmsh $ESSMSH_FILE &> /dev/null
    To run it, you would on a Unix prompt do this :
    #> ./test.sh test essbase localhost
    Hope it helps,
    Cheers,

  • MaxL Commands with a .BAT

    Is there anyway to execute MaxL commands inside Essbase using a ".BAT" file?
    Like write "Create application Test;" on a TXT then use a ".BAT" to read this TXT as a parameter file in order to create an application inside Essbase.
    I think the ".BAT" must be like any other else but my doubt is if must have some kind of logging commands at the TXT or any other commands.

    here's a sample:
    in the MaxL file you write this:
    spool on to 'c:\Logs\login.out';
    login $1 $2 on $3;
    spool off;
    In the Batch file you write this:
    set uid=userid
    set pwd=password
    set svr=localhost
    essmsh "c:\scripts\login.msh" %uid% %pwd% %svr%
    Note: Make sure there is no space between the "=" sign and your variables.
    or you can skip the variables and just pass the parameters directly to the msh file, something like this:
    essmsh "c:\scripts\login.msh" userid password localhost
    Message was edited by:
    didopiff

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

  • MaxL Python Module

    The MaxL Python Module, Essbase.py, provides access to Hyperion Essbase multi-dimensional databases from Python programs through MaxL. It is similar in function and usage to the Perl module Essbase.pm. The Essbase Python module interfaces with Hyperion Essbase using a Python ctypes module wrapper for the primary MaxL dll (essmaxl.dll or essmaxlu.dll). The ctypes module is standard in Python 2.5 and may be downloaded for earlier versions from http://sourceforge.net/projects/ctypes. Versions of the wrapper are included for Essbase 6.5 and for Essbase 7.
    Updates:
    Support for Essbase 7.1 MDX has been added.
    http://essbasepy.googlecode.com/

    A small update to the Essbase Python module has been posted to [http://essbasepy.googlecode.com/] . As before, no compiler is required if you already have Python and the ctypes module (included in the standard library as of version 2.5). Installation is as easy as unzipping the download and executing from the command line:
    python setup.py install
    Changes
    ver. 7.1.2009.0519
    1. Added support for Unicode (thanks to Edward Delgado for many cycles of unit and integration testing).
    ver. 7.1.2008.0818
    1. Changed method of locating MaxL library to (hopefully) make script Unix friendly.
    2. Added support for MaxL doubles.
    ver. 7.1.2008.0304
    1. New generator function rows() which allows for simpler, more pythonic data access.
    2. New optional parameter timefmt for the execute() function. Defaults to original time.asctime() format.
    ver. 7.1.2007.1106
    Original posting to http://essbasepy.googlecode.com/.

  • How to delete the members in one dimension use the maxl script

    i have question that i want to delete the members in one dimension useing the maxl script, but i do not know how to do it. can the maxl delete the members in one dimension? if can, please provide an sample script, thank you so mcuh.

    MaxL does not have commands to alter an outline directly, except the reset command which can delete all dimensions but not members selectively. The best you could do would be to run a rules file (import dimensions) using a file that contains the members you want to keepload rule for the dimension. As typical the warning is to test this first before you do it on a production database

Maybe you are looking for

  • Ask for helps and comments for a practicing ADF sample: Entering bank transaction records

    Dear experts: I'm redeveloping a practicing ADF sample application based on an exist application system of  my company. Here is the goal for this redeveloping: What degree of productivity can adf achieve compare to eclipse? And hereby is a small exam

  • Which database version to download?

    Hello, I need to install Oracle 10G database on an IBM blade system running Red Hat Enterprise Linux ES release 4. How do I tell which version to choose? Output from uname -a is: Linux xxxxxxx 2.6.9-42.0.3.ELsmp #1 SMP Mon Sep 25 17:28:02 EDT 2006 i6

  • Importing pics

    I am trying to import pics from the iPhoto library folder to the iPhoto library or a new album. When I do, i get a dialog box that states "can not import, file already exists in iPhoto library folder". Ihave tried clicking and dragging with the same

  • Unable to sync Google Contacts

    Hello! I just bought the iPhone 3GS and wanted to sync my contacts with Google Contacts using iTunes (8.2.1.6). However, when I input my e-mail address and password, it says that they're wrong, even though I've double and triple-checked that they're

  • How to make a video call to a person's i phone from face time on an iMac

    I want to use face time to make a video call from my i mac to an i phone.  "help" is not informative.