Variable usage in TestStand expression statements

I am trying to implement the following:
Locals.tot_power= (Locals.tot_power+ 10E Locals.reading)
as an expression in TestStand, it doesnt accept the variable locals.reading for the exp power. Is it possible to do this somehow?
Solved!
Go to Solution.

Indeed in TestStand the exponent can't be a variable. Depending on the type of 'locals.result' (i.e. unsigned integer or real) two possible solution might solve your problem:
Solution 1 (always expect an unsigned integer in 'locals.result' variable):
- Define another numeric variable in locals section, for instance 'locals.temp'.
Then, in an additional 'statement' step define the expression "Locals.temp *= 10" and a custom 'Loop option' with the following 'Loop While Expression':
RunState.LoopIndex < Locals.reading
The attached sequence file "Solution1.seq" gives an example of the description above.
Solution 2 (the values in the 'locals.reading' are real numbers):
- For this problem I wrote a math library (.DLL) where I implemented the mathematical function
suitable for my needs, that aren't supported by TestStand. In the "Solution2.zip" attached file I used the exported function "TS_pow", which implements "z = x^y" and is called from an 'Action' type step using 'Flexible DLL adapter'. The result returned by this function is stored in 'locals.temp' variable and is used in the second 'Statement' step. (The expression in the 'Statement' step may be moved into the previous 'Action' step in the 'Post step' expression, so the function "Locals.tot_power= (Locals.tot_power+ 10E Locals.reading)
" result can be achieved in a single step.)
The "Solution2.zip" contains also the VC++ source code used to create "math.dll".
Hope this answer your question,
Silvius
Silvius Iancu
Attachments:
solution1.seq ‏11 KB
solution2.zip ‏129 KB

Similar Messages

  • How to unify or merge the variables from several TestStand platforms to one TestStand platform?

    Hi,
       We work with TestStand 3.5 and LabVIEW 8.0 versions.
       We work in a parallel mode with several developers and each from developers:
         1. Wrote his sequences at his TestStand station
         2. Defined his local variables/sequence File Global variables/station Global Variables at his TestStand
    I need to create the one file sequence at dedicated for it TestStand platform (target station) that will include all of sequences from these developers.
    So, the questions are:
    How i do that? What the existing tools/methods/solutions?
    How i can distribute all the variables that relate to different sequences and from different TestStand platforms?
    In other words, how i collect all related collections of variables(whatever?) from every developer of my team and unify/merge/distribute all of that
    to dedicated TestStand station that will include of all developed sequences without forgetting/losing something???
    I attached the visual presentation of my question (unify.JPG), please see the schema.
    If you have the question regards something, please let me know.
    Message Edited by Yuri_IL on 06-11-2006 10:01 AM
    Thank you & Best Regards
    *I use LabVIEW 8.X & TestStand 3.5/4.0.1 versions only
    Attachments:
    unify.JPG ‏26 KB

     Perhaps, i did not expressed well my question...
    1. I do need that top level sequence / sequence file needs to know or even care what variables are used by other sequence / sequence files
    2. I know how to deploy SINGLE TestStand sequence file/project to a target station.
    3. I want to know how to deploy MULTIPLE TestStand sequences from MULTIPLE TestStand stations and unify it to the SINGLE set of these multiple sequences that i deployed at my target station...
    For example:
     TestStand station #1 with sequence: init_of_xxx.seq
     TestStand station #2 with sequence: init_of_yyy.seq
     TestStand station #3 with sequence: init_of_zzz.seq
    After deploying at my target: TestStand station #4 i want to get a WORKING set of sequences:
                      init_of_xxx.seq
                      init_of_yyy.seq
                      init_of_zzz.seq
    The problem is that i know how to deploy every sequence sepately, but do not know how to deploy together
    Message Edited by Yuri_IL on 06-12-2006 02:56 AM
    Thank you & Best Regards
    *I use LabVIEW 8.X & TestStand 3.5/4.0.1 versions only

  • Teststand error states that a vi failed to load in the Labview Run-Time Engine

    I am getting an error in teststand that states that a vi failed to load in the Labview Run-Time Engine version '14.0.1'
    If I look at the software loaded on my system with the NI Measurement and Automation Explorer I have Labview Run Time engines for version 2009, 2010, 2011, 2012, 2013, & 2014 on my system.
    How do I get this VI to run on this system when it is called by test Stand?
    Thank you

    The RTE 14.0 was loaded as part of my deployment and after I ran this I got an update notice for the F1 patch which I also loaded.
    I do not have labview loaded on this system, only the run time engines from running my deployment.
    When I launch t he teststand sequence, when it calls the labview VI, I get the following error moessage:
    Error: Failed to load VI 'C:\builds\RelayVoltageMeaure.vi' in the LabVIEW Run-Time Engine version '14.0.1'. LabVIEW: The VI is not executable. This error may occur because the VI is either broken or contains a subVI that LabVIEW cannot locate. Select File>>Open to open the VI and verify that you can run it. VI Path: C:\builds\RelayVoltageMeaure.vi[Error Code: -17600, Failed to load a required step's associated module. ]
    I have attached the teststand sequence if this helps.
    Thanks
    Attachments:
    QuantumDigitalBd.seq ‏13 KB

  • Use property value in *REC EXPRESSION statement

    Hi,
    How can I use the value of a property in a *REC EXPRESSION statement.
    Assuming I have a property PRIORYEAR in my TIME dimension that indicates the same period in the previous year
    Example: ID: 2009.JAN, PRIORYEAR=2008.JAN
    I want to fetch the value from the PRIORYEAR with something like:
    *REC(EXPRESSION=([TIME].PRIORYEAR),ACCOUNT="RENTASPERCSALES")
    But it won't work. I tried few other options such as
    *REC(EXPRESSION=([TIME].CurrentMember.Properties("PRIORYEAR")),ACCOUNT="RENTASPERCSALES")
    to no avail.
    Any suggestion would be greatly appreciated.
    Thanks
    Regis

    Hi Regis,
    Just checking, have you tried using 'TMVL' function in your script logic. Please check the help.sap for the usgae and some examples.
    We could use TMVL in all the following places.
    - in a 'WHEN' statment
    - in an REC expression
    - and also in a scoping statement.
    We had some issues validating the script logic with TMVL in SP04 and teh same have been resolved in SP05. You might have to write the logic and validate the logic if your BPC version has any SP related issues.
    Example:
    *WHEN TIME
    *IS TMVL(-1, 2010.DEC)
    *REC(FACTOR=1, TIME=201.DEC)
    *ENDWHEN
    we could also use TMVL with a data manager prompt value such %TIME_SET%.
    Thanks

  • Concat java variable to a MySql select statement and exeucte

    Hi,
    I am trying to append a variable to a MySql select statement.
    Overview: I need to retrieve data from a MySql database with a java variable as a reference and select the data in the database based on that variable.
    CODE THAT I CURRENTLY HAVE:
    // Declare variables
    Connection conn = null;
    Statement st = null;
    Resultset rs2 = null;
    String st2 = null;
    String keyid = null;
    // Connect to database
    try {
          Class.forName("org.gjt.mm.mysql.Driver").newInstance();
          conn = DriverManager.getConnection("jdbc:mysql://" + mysql_host + ":3306/" + mysql_database, mysql_login, mysql_password);
          st = conn.createStatement();
          // Select data in Database with hanging equal sign
          st2 = ("SELECT * FROM table WHERE keyid= ");
          // Append keyid to hanging equal sign of select statement
          rs2 = st.executeQuery(st2 + keyid);
    }This is not working when I try to display the data.

    What is not working about it? Is there an error message? Stack Trace?
    Where do you get the value of keyId from?
    I would suggest that you use a prepared statement rather than building up a sql string like this. It prevents sql injection attacks
    // Declare variables
    Connection conn = null;
    PreparedStatement stmt = null;
    Resultset rs2 = null;
    String sql= null;
    String keyid = null;
    // Connect to database
    try {
          Class.forName("org.gjt.mm.mysql.Driver").newInstance();
          conn = DriverManager.getConnection("jdbc:mysql://" + mysql_host + ":3306/" + mysql_database, mysql_login, mysql_password);
          // Select data in Database with place holder for parameter
          sql = "SELECT * FROM table WHERE keyid= ?";
           // prepare the statement
          stmt = conn.prepareStatement(sql);
          // set the value of key id to use with the query
          stmt.setString(1, keyId);
          // run the query
          rs2 = st.executeQuery();
    catch (Exception e){
      System.out.println("An error occurred " + e.getMessage());
      e.printStackTrace();
    finally{
      if (rs2 != null) try { rs2.close(); } catch(SQLException ex){}
      if (stmt != null) try { stmt.close(); } catch(SQLException ex){}
      if (conn != null) try { con.close(); } catch(SQLException ex){}
    }

  • All variable usage

    hi, I am new to sap-abap.
    i want to learn more about variable usage in abap.
    can anyone guide me?
    regards,
    hema.

    hi hema,
    this will guide u.
    hi,
    *& Report Z_OOABAP18 *
    &----REPORT Z_OOABAP18 .CLASS lcl_employee DEFINITION.
    PUBLIC SECTION.
    The public section is accesible from outside
    TYPES:
    BEGIN OF t_employee,
    no TYPE i,
    name TYPE string,
    END OF t_employee.
    METHODS:
    constructor
    IMPORTING im_employee_no TYPE i
    im_employee_name TYPE string,
    display_employee.
    Class methods are global for all instances
    CLASS-METHODS: display_no_of_employees.
    PROTECTED SECTION.
    The protecetd section is accesible from the class and its subclasses
    Class data are global for all instances
    CLASS-DATA: g_no_of_employees TYPE i.
    PRIVATE SECTION.
    The private section is only accesible from within the classs
    DATA: g_employee TYPE t_employee.
    ENDCLASS.
    LCL Employee - Implementation
    CLASS lcl_employee IMPLEMENTATION.
    METHOD constructor.
    g_employee-no = im_employee_no.
    g_employee-name = im_employee_name.
    g_no_of_employees = g_no_of_employees + 1.
    ENDMETHOD.
    METHOD display_employee.
    WRITE:/ 'Employee', g_employee-no, g_employee-name.
    ENDMETHOD.
    METHOD display_no_of_employees.
    WRITE: / 'Number of employees is:', g_no_of_employees.
    ENDMETHOD.
    ENDCLASS.
    R E P O R T
    DATA: g_employee1 TYPE REF TO lcl_employee,
    g_employee2 TYPE REF TO lcl_employee.
    START-OF-SELECTION.
    CREATE OBJECT g_employee1
    EXPORTING im_employee_no = 1
    im_employee_name = 'Vikram.C'.
    CREATE OBJECT g_employee2
    EXPORTING im_employee_no = 2
    im_employee_name = 'Raghava.V'.
    CALL METHOD g_employee1->display_employee.
    CALL METHOD g_employee2->display_employee.
    regards,
    madhu.

  • The functions in Teststand "express browser dialog"

      Teststand provides several functions in Teststand "express browser dialog" to facilitate calculations. For example, I can use the function of "SetNumElements" to get the size of certain arrary. However, compared with in CVI, it seems that that's far away from engough.For example, there's no functions like advanced analysis library. 
      I'm wondering whether Teststand has provided much more functions than what are already listed in "express browser dialog", if yes, where can I get a reference manual to find the functions that I need.
      In order to make it clearer, the meaning of ""express browser dialog" is shown in attached file.
    Thanks a lot!
    Jacky
    Attachments:
    screenshot.gif ‏16 KB

    I want to comment that Dennis is exactly right about the intent of TestStand.
    TestStand is meant to connect and augment code you write in LabVIEW, CVI, and/or Visual Studio, not to replace it. Also, what he refers to as putting functionality in a "custom step" can mean just calling a VI, DLL, server, or assembly from a TestStand step, not necessarily the similarly named but more involved process of creating a custom step type. 
    Custom step types are good for wrapping a function or VI with a user friendly configuration dialog to facilitate re-use. However, in many cases it is more than adequate to simply passing arguments to a code module you call directly.
    It is certainly true that having a large number of code module files can make it more difficult to move a sequence without forgetting to include one of its dependencies. The TestStand deployment tool is designed to help mitigate this problem by identifying dependencies and packaging them all into one directory or installer.

  • Reuse a variable in OSB XPATH expression editor

    I have a problem with replacing activity in Oracle Service Bus.
    I created a variable with the follow content
    <response>
    <operationResponse name="OPERATION1" result=""/>
    <operationResponse name="OPERATION2" result=""/>
    <operationResponse name="OPERATION3" result=""/>
    <operationResponse name="OPERATION4" result=""/>
    </response>
    For each operationResponse I call a businessProxy that invokes an external webservice. If this call is made with success, I replace `result=""` with `result="1"`.
    I have created a replace activity like this:
    <con3:replace contents-only="true" varName="responseElement"> <!-- var responseElement = <response>.*</response> -->
    <con2:id>_ActionId-3886365367816551561--27a55993.13f0a38ab8f.-7c95</con2:id>
    <con3:location>
    <con2:xpathText>./operationResponse/@result</con2:xpathText>
    </con3:location>
    <con3:expr>
    <con2:xqueryText>"1"</con2:xqueryText>
    </con3:expr>
    </con3:replace>
    After running this program, all the attributes "results" are replaced by "1", if the businessService is called successfully.
    The problems is that I need to replace the attribute "result" only for the element operationResponse that have the attribute "name" equal to the operationResponse that invokes the businessService.
    I have created a variable called operationName that contains the current response/operationResponse. I used ./operationResponse[@name=$operationName]/@result.
    The OSB XPATH expression editor is throwing the follow error:
    Variable "$operationName" used but not declared for expression
    Can anyone help with this?

    Hi, XPath and XQuery are conceptually different. XPath expression can not have variables while an XQuery expression can have a variable inside the XPath when the expression is bound to a variable.
    To work around the issue, instead of using the condition in XPath expression inside replace you should write the XQuery expression of REplace in such a way that it results in what you need.
    For ex. if I take the example above:
    say the content of $body is as below:
    <soap-env:Body>
    <aaa>
    <bbb>
    <ccc>A</ccc>
    <key>1</key>
    </bbb>
    <bbb>
    <ccc>B</ccc>
    <key>2</key>
    </bbb>
    </aaa>
    </soap-env:Body>
    and you wanted to replace values of ccc to X for any bbb elements which have key=1(and you have saved a variable called keyCheck with value '1' earlier in the flow), then you could do the following:
    Replace contents of  . in body with
    <aaa>
    for $bbb in $body/aaa/bbb
    if ($bbb/key/text() = $keyCheck)
    then
    <bbb>
    <ccc>X</ccc>
    <key>{$bbb/key/text()}</key>
    </bbb>
    else
    $bbb
    </aaa>

  • Lire variable locals de teststand dans labview par activeX

    Bonjour,
    Dans le cadre d'un projet interne, je crée une application sous labview qui servira d'interface utilisateur et autres choses.
    Le problème est que j'ai besoin de lire les variables locals de teststand avec labview sans que le programmeur teststand se soucie de faire appel à une fonction spécifique.
    Pour faire simple l'idée est d'utiliser l'activeX sur labview pour lancer les fichiers séquences etc. ça ne me posse pas se soucie à ce niveau-là.
    Mon problème est que j'aimerais lire les variables locals de teststand dans labview, j'avais l'habitude de lire les variables StationGlobals par cette méthode mais pas moyens de faire la même chose pour les locals.
    En gros, il faudrait que j'ai accès à sequenceContext par activeX mais sans faire un appel d'un VI dans teststand comme dans l'exemple proposé dans teststand.
    Cordialement.

    Bonjour Steve,
    En effet, ceci n'était pas aussi simple qu'il n'y paraissait...
    Voici un exemple:
    L'astuce étant de récupérer le Sequence Context depuis l'Executionview manager, on notera qu'il faut passer par l'exécution puis le thread car la propriété qui devrait renvoyer le SequenceContext directement ne fonctionne pas et renvoie une erreur... 
    Rodéric L
    Certified LabVIEW Architect
    Pièces jointes :
    récuperer locales depuis IHM.png ‏14 KB

  • Reg: Script Logic - REC Statement Variable usage

    hi friends
    Pl find enclosed the following code:
    *WHEN TIME               
    *IS TMVL(-1,2011.04)               
    *WHEN ACCOUNT               
    *IS "EXP01"               
    *REC(EXPRESSION = [TIME].[2011.04]-%VALUE%,TIME = 2011.04,ACCOUNT = EXP01A)               
    *ENDWHEN               
    *ENDWHEN               
    The above code is working fine and result is extracted but i have hardcoded , ACCOUNT=EXP01A;
    My Query is follows:
    I have used
    *WHEN ACCOUNT               
    *IS "EXP01"
    In REC i want to use concatenation of "A" To account like EXP01&"A"
    i know accunt & i want to concatenate "A" and use in REC statement like assign to variable
    var1="EXP01" & "A" and use var1 in REC
    *REC(EXPRESSION = [TIME].[2011.04]-%VALUE%,TIME = 2011.04,ACCOUNT = var1)
    i am not sure the syntax (Whether we need to put in strings)
    Also if EXP02 then var1="EXP02"&"A" and so on
    In fact i want to make this for all members in Account Dimenstion as generalised.
    Pl. verify and suggest best possibility
    Thanx & Rgds
    Srinath

    Hi Krishna
    *XDIM_MEMBERSET ACCOUNT AS %ACC% = EXP01
    *WHEN ACCOUNT
    *IS %ACC%
    REC(EXPRESSION = %VALUE%2,TIME = 2011.04,ACCOUNT = %ACC%A)
    *ENDWHEN
    Is it required to add EXP01A as below?
    XDIM_MEMBERSET ACCOUNT AS %ACC% = EXP01, EXP01A
    Also In Generalized code you have mentioned:
    Instead of Hard Coding EXP01, EXP02 can i have hierarchy of all EXP , so that if any new account added in dimension, there will be no change in script logic. Pl. can you share how to use the same.
    If above code needs to be generalised, *FOR *NEXT can be used .
    *XDIM_MEMBERSET ACCOUNT AS %ACC_LIST% = EXP01,EXP02,EXP03,EXP04
    *FOR %ACC_MBR% = %ACC_LIST%
    *WHEN ACCOUNT
    *IS %ACC_MBR%
    REC(EXPRESSION = %VALUE%2,TIME = 2011.04,ACCOUNT = %ACC_MBR%A)
    *ENDWHEN
    *NEXT
    Rgds
    Srinath

  • Long execution times for TestStand conditional statements

    I have two test stations – one here, one at the factory in China that has been operating for about a year. The test program uses TestStand 3.1 and calls primarily dll's developed using CVI. Up until a couple months ago, both test stations performed in a similar manner, then the computer at the factory died and was replaced with a new, faster computer. Now the same test sequence at the factory take three times as long to execute (30 min at the facotry, 10min here).
    I have recoded the execution time at various point during the execution, and have found that the extra times seems to be occurring during the evaluation of conditional statements in TestStand (i.e. for loops, if statements, case statements). For example, one particular ‘for’ evaluation takes 30 ms on the test station here, but takes 400 ms at the test station at the factory (note: this is just the evaluation of the for condition, not the execution of the steps contained within the for loop).
    The actual dll calls seem to be slightly faster with the new computer.
    Also the ‘Module Times’ reported don’t seem to match the actual time for the module for the computer at the factory. For example, for the following piece of TestStand code:
    Label1
    Subsequence Call
    Label2
    I record the execution time to the report text in both Label1 and Label2. Subtracting one from the other gives me about 18 seconds. However the ‘Module Time’ recorded for ‘Subsequence Call’ is only 3.43 seconds.
    Any body have any ideas why the long execution time with the new computer? I always setup the computers in exactly the same way, but maybe there is a TestStand setting somewhere that I have missed? Keep in mind, both test stations are running exactly the same revision of code.

    Got some more results from the factory this morning:
    1) Task Manager shows that the TestExec.exe is the only thing using CPU to any significant degree. Also CPU Usage History show that the CPU Usage never reaches 100%.
    2) I sent a new test program that will log test execution time in more places. Longer execution times are seen in nearly every area of the program, but one area where this is very dramatic is the time taken to return from one particular subsequence call. In this subsequence I log the time just before the <End Group> at then end of Main. There is nothing in Cleanup. I then log the time immediately after returning from this sequence. On the test system I have here this takes approximately 160 ms. On the test system at the factory this takes approximately 14.5 seconds! The program seems to be hanging here for some reason. Every time this function is called the same thing happens and for the same amount of time (and this function is called about 40 times in the test program, so this is kill me).

  • Passing a variable to an SQL Expression Field

    Is it possible to pass a value or variable to an SQL Epression field?  I want to sum the values of open invoices for a particulat customer and want to do this using an SQL Expression Field.  I need this sum in a  subreport and since I can not put a subreport in a subreport I want to do it using an SQL Expression.
    Thanks.
    Ralph

    That would require a SELECT statement in the expression and they really are not designed to do that.
    If you can't do this client side write a stored procedure then you have full control and CR is just used to display the data.

  • Variable creation in TestStand through CVI

    I have one steptype in which during Edit, the new variable has been created. I also saved that sequence. If I close that sequence file with that steptype and reopen the same sequence, the variable created last time was not there. I think these variable are not getting stored with sequence. The steptype building block is created in CVI. Those edit time variable creation is done by means of using “TS_PropOption_InsertIfMissing” functions in CVI. Can you please tell us is there any CVI functions to create variable during edit time and to be saved with the sequence.??

    Once again, Expression Strings, has stumbled another programmer!
    Parameters.DatabaseOptions.ConnectionString is not a string but an Expression String, and your assignment of a StationGlobals.Database ( just a string ) is causing this error.
    Here is what I did to solve your issue:
    1.) StationGlobals ( remove the leading "\" and trailing \"" from the Database string ) it should contain NO leading or trailing quotes
    StationGlobals.Database = Provider=Microsoft.Jet.OLEDB.4.0;Persist Security Info=False;Data Source=C:\\Users\\Public\\Documents\\National Instruments\\TestStand 4.2.1\\Components\\Models\\TestStand Results.mdb.
    2.) In Database Options Callback use the following expression to set the Data Source
    Parameters.DatabaseOptions.ConnectionString= "StationGlobals.Database"
    There are other alternatives as documented in this link.
    http://zone.ni.com/devzone/cda/tut/p/id/4793
    Good luck,
    PH

  • Bind variables in DB Connect SQL Statement in Oracle

    We are looking for ways to improve performance of DB Connect extract from an Oracle database.
    An example command that is created by the Info-Package using a DB-Connect:
    Current
    SELECT "A", "B", "C", "D", "E", "F", "G", "H"
    FROM "GSF_BW"."V_BW_FORCAST_FACT"
    WHERE ("A" = '200904') AND ("B" BETWEEN '100801' AND '101412')
    The calculated cost (calculated by Oracle Optimizer) is 25.145
    Oracle recommends the usage of bind-variables.
    In that case the Statement would need to look like:
    SELECT "A", "B", "C", "D", "E", "F", "G", "H"
    FROM "GSF_BW"."V_BW_FORCAST_FACT"
    WHERE ("PG0R_SUBD" = :b1) AND ("ZCALMONTH" BETWEEN :b2 AND :b3)
    This would reduce the cost to 11.000 which is 40% of the statement before.
    My question now is: Can anything be done to influence the generation of the SQL statement to make it better performing?

    Hi,
    It is always better to test yourself. Using bind variable is always a good practice and optimizer avoids hard parsing (soft parsing will be done here) if bind variables are used.
    So yes, if this function is being executed several times frequently then second execution onwards it may run faster.
    If you want to see actually what is happening behind it, trace it (using tkprof) and see the result.
    See the below link to know more about SQL TRACE and tkprof.
    http://download.oracle.com/docs/cd/E11882_01/server.112/e16638/sqltrace.htm#PFGRF01020
    Regards,
    Avinash
    Edited by: Avinash Tripathi on Nov 16, 2010 11:46 PM

  • How can i append the variable to filename in import statement?

    how can i append variable(substitution variable) to file name in import command for maxL?
    example : For suppose there is a file like "dataload.txt" and a variable like cur_month(august).How can i rename the file like daload_august in import statement.
    Edited by: 788996 on Aug 22, 2010 11:18 PM

    Are you saying you want to use an OS level environment variable in a MaxL statement to substitute for an entire file name? I am going to illustrate Windows, but do it your own way in *nix if you want.
    YourCallingCode.cmd
    REM Note the \\ and then the \\, you had \\ and \
    SET curmon=c:\\ABC\\datafile_21_AUG.txt 
    REM Call MaxL with a paramenter
    startMaxL.cmd DoItForTheCurrentMonth.msh %curmon%DoItForTheCurrentMonth.msh
    login blah blah for blah ;
    import database appname.dbname data from local text data_file $curmon using server rules_file "rulefile"
         on error abort ;The trick is to change whatever's in % and % and replace it with a $ in the MaxL script.
    I gave a presentation last year on MaxL at ODTUG Kaleidoscope. If you go to http://www.odtug.com, then Tech Resources, then Essbase, then search on my name, you'll find "Master Essbase with MaxL Automation". More than you could ever want to know about MaxL, variables (parameter, environment, and explicitly declared), scripting, etc., etc., are all there for the taking. If you're not already a member, you'll have to join, but an associate membership is free. You can then download my presentation and all of the others. It is a treasure chest of technical tips and knowledge.
    Yes, I am a fan a member of the Hyperion SIG, so I am ever so slightly biased. Regardless, it is good information, for free.
    Regards,
    Cameron Lackpour
    Edited by: CL on Aug 24, 2010 5:33 AM
    If you want to substitute part of the data file name, you can do that too:
    set curmon=21_AUG
    Your MaxL statement would look like:
    import database appname.dbname data from local text data_file "c:\\ABC\\datafile_$curmon.txt" using server rules_file "rulefile"
         on error abort ;

Maybe you are looking for

  • VALUE FLOW IN COPA

    Hi Guys Can you guys please explain me how does the values flows in COPA. If you have any documents on this, please do forward it to my email. Your prompt response to this would be highly appreciated.. Kundan Bhattarai

  • Camtasia Poor Quality in Premiere CS4 Export

    I am a PC user. One of my clients uses Mac and Camtasia to screen capture his software program, which I need to integrate into a video I am making for his company. The MP4 Camptasia file he sends me looks good. I bring the file into Premiere to edit

  • Swf works with errors but how hide them from browser?

    Hi! I've made an AS3 application loading and manipulating some XML data. The application works but there are some errors in the Output panel I'm unable to get rid of. But when I publish to HTML they also show up in FireFox. How can I flag them as non

  • Problems reading waveform files in MATLAB

    Deal all, I acquired signals on 2 A/D channel (using DAQ board M USB-6215) and save them into waveform file using WriteWaveformsFile.vi. But for processing (FFT, elippse fitting, sinewave fitting) I want to use these data in MATLAB. I tried some opti

  • REUSE_ALV_GRID_DISPLAY IT_FIELDCAT change after I_CALLBACK_USER_COMMAND

    Hi. I changed the FIELDCAT after I_CALLBACK_USER_COMMAND, but the same fieldcat is displayed. The internal table can be changed, but not the FIELDCAT? I'm adding comments column after update... Can this be done?