Weird problem using "Login" in MaxL script

Hi there
I have created a MaxL script for loading som data into an Essbase. The script you can see below.
login 'user' 'password' on 'nkm18k14';
import database 'realtest'.'Loadtest'
data from text data_file '\\nkm18k00\Planning\Loaddata\lonbud.txt'
using server rules_file 'LonBLoad'
on error write to '\\nkm18k00\Planning\Errorlogs\realtest.txt';
When I try to execute it, as it is i get the following error "(3) Syntax error near ['$'], which im guessin is line 3, right?
When I remove line 1 (the login statement), the script runs just fine. What is goin on, any ideas?
I as a user have write acces to the network locations specified, could it be that the essbase uses som kind of system user that doesn't have acces to the network location?
Any valuable input will be appreciated.
Regards, Jacob

It's true that they are not "needed" from a security approach, but from a maintenance approach you still end up having to touch a large number of scripts if you store the connection details in them.
As a system user, you don't even have to change the password -- but if you have someone leave the company you may just want to.
Either way, I would never want to hard code connectivity details inside dozens of scripts when I can keep it in a single place.
Here is the MXL_Shell file for Windows -- you can obtain the SendEmail.exe from multiple places, but the syntax should be validated.
The location of the scripts, log files, and batch items can of course be modified to your liking as well...
The Errors that are ignored are stored in a file called "IGNORED.TXT" in the Batch directory (see below for what I ignore).
@echo off
REM ================================================================
REM   MXL_Shell.cmd - Wrapper to call EssMsh (MXL) scripts
REM ----------------------------------------------------------------
REM   Author: Doug Bliss
REM   Initial QC: 5/21/2005
REM ----------------------------------------------------------------
REM   Script to Execute should be base name (without extension)
REM   Script should exist in the ..\Scripts directory
REM   Both StdOut and StdErr are redirected to ..\Logs\<Script>.log
REM   Call activity is logged to ..\Logs\Daily_ddmmyy.log
REM   Log file is appended to ..\Logs\<Script>.hst at finish
REM   Log file is processed for "Error" tokens to determine if
REM      the result was successful or not
REM   Notifications are taken from comment blocks in the script:
REM      /* Notifications:
REM         ONSUCCESS [email protected]
REM         ONERR [email protected]
REM       */
REM   Localization details: Update the variables set immediately below (typically SRCPATH and EMAIL*)
REM ================================================================
SET SRCPATH=C:\Automation
SET EMAILDOM=<yourcompany.com>
SET EMAILRELAY=<relay>.%EMAILDOM%
SET DEVBOX=<devboxname>
SET IGNORE=%SRCPATH%\Batch\Ignored.txt
SET MXLFILE=%SRCPATH%\Scripts\%1.mxl
SET LOGPATH=%SRCPATH%\Logs
SET LOGFILE=%LOGPATH%\%1.log
SET ERRFILE=%LOGPATH%\%1.err
SET HSTFILE=%LOGPATH%\%1.hst
SET DAYFILE=%LOGPATH%\Daily_%date:~4,2%%date:~7,2%%date:~10,4%.log
REM ################################## Step 1: Sanity Checks
IF "%1"=="" EXIT /B 1
IF NOT EXIST %MXLFILE% EXIT /B 2
REM ################################## Step 2: Initialize Log entries
IF NOT EXIST %LOGPATH%\. MKDIR %LOGPATH% >nul
IF EXIST %ERRFILE% MOVE /Y %ERRFILE% %SRCPATH%\Logs\%1.bak.err >nul
IF EXIST %LOGFILE% MOVE /Y %LOGFILE% %SRCPATH%\Logs\%1.bak.log >nul
REM ################################## Step 3: Call the Script
ECHO %time% -- Calling EssMsh Script: %1.mxl %2 %3 %4 %5 %6 %7 %8 %9 >>%DAYFILE%
ECHO ============================== ESSBASE SESSION LOG >%LOGFILE%
ECHO Log Opened: %date% %time% >>%LOGFILE%
CALL User.cmd
essmsh.exe -s %COMPUTERNAME% -u %UID% -p %PWD% %MXLFILE% "%2" "%3" "%4" "%5" "%6" "%7" "%8" "%9" >>%LOGFILE% 2>&1
REM ################################## Step 4: Post Processing
REM #### Daily Log Entry (return call)
ECHO %time% -- Returned from Maxl Script: %1.mxl >>%DAYFILE%
ECHO Log Closed: %date% %time% >>%LOGFILE%
ECHO ============================== END OF SESSION >>%LOGFILE%
REM #### Process Error entries and filter via Ignored.txt file
TYPE %LOGFILE% | FIND "ERROR" >%ERRFILE%
FOR /f "tokens=1" %%a in (%IGNORE%) DO TYPE %ERRFILE% | FIND /V "%%a" >%ERRFILE%
FOR %%a in (%ERRFILE%) DO SET /a ErrCount=%%~za >nul
IF '%COMPUTERNAME%'=='%DEVBOX%' (
     SET TYPE=NON-Production
     SET SVR=development
) ELSE (
     SET TYPE=Production
     SET SVR=production
IF %ErrCount% EQU 0 (
     ERASE /Q %ERRFILE%
     SET SUBJECT=Essbase %TYPE% Script Completed
     SET MESSAGE=Maxl script '%1' has successfully completed on the %SVR% server.
     SET ATTACH=
     SET RESULT=SUCCESS
) ELSE (
     REM ################################## ERROR Processing
     SET SUBJECT=Essbase %TYPE% Script Error
     SET MESSAGE=Errors were detected in Maxl script '%1', the job's log and error files are attached.
     SET ATTACH=%LOGFILE% %ERRFILE%
     SET RESULT=ERR
TYPE %MXLFILE% | FIND "ON%RESULT%" >Notify.tmp
FOR /f "tokens=2" %%a in (Notify.tmp) DO SendEmail -f %COMPUTERNAME%@%EMAILDOM% -t %%a -u "%SUBJECT%" -m "%MESSAGE%" -s %EMAILRELAY% -a %ATTACH%
ERASE /Q Notify.tmp
ECHO. >>%DAYFILE%
ECHO. >>%HSTFILE%
TYPE %LOGFILE% >>%HSTFILE%
:FIN
ECHO.
EXIT /B %ERRCOUNT%Here is my IGNORED.TXT file (only the code itself is used, the rest is for reference).
0000000  This file contains Essbase Error codes which should be ignored by ESS_Shell.cmd or MXL_Shell.cmd
1051083  This substitution variable does not exist.
1003029  Encountered formatting error in spreadsheet file [%s]
1090010  Error in File [%s] Which is a [%s] Spreadsheet
1051068  Database is not in archive read-only mode

Similar Messages

  • Using $ sign on MaxL scripts

    Hi all,
    How does using $ sign on MaxL scripts work? I have seen scripts that $ sign was used instead of username, password, server name, etc. What are the advantages of using it and how can it be set up?
    Thanks in advance.
    A

    $ are used to denote variables and to be pedantic about it, encrypted usernames and passwords which I guess are used sort of like variables.
    I use them all the time unless the MaxL script is super quick, dirty, and disposable. And they never end up being disposed of.
    Check out this part of the Tech Ref for all you ever wanted to know about variables in MaxL:
    http://download.oracle.com/docs/cd/E17236_01/epm.1112/esb_tech_ref/maxl_syntax_vars.html
    If you want to get a different take on them, check out ODTUG's Resource Center and my presentation from 2009 to get a feel for how they can be used in scripting. My blog also has a post from 2009 on how to use variables under the "Fixing Planning's Filters" topic.
    Regards,
    Cameron Lackpour

  • Weird Problem using Mnemonics

    I have a weird problem with mnemonics:
    When I use the mnemonic for my JMenuItem to open a specific JPanel the first time (e.g.) it works fine, then if I then close it for example and I still have the "Alt" key pressed I get the follwing exception??? :
    java.lang.NullPointerException
    at javax.swing.SwingUtilities.getWindowAncestor(Unknown Source)
    at com.sun.java.swing.plaf.windows.WindowsRootPaneUI$AltProcessor.postProcessKeyEv ent(Unknown Source)
    at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Unknown Source)
    at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Unknown Source)
    at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Unknown Source)
    at java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Window.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)
    Hope someone can help.
    Kanita

    The mnemonic are not working because the Window or the Frame on which your components are added have lost the focus while pressing the Alt key.
    I had faced the same problem , but I wanted a focus on JMenuBar which i had added to my frame.
    when i was clicking the JButton using the mnemonic , i used to loss the focus. But afterwards i put a code in the actionPerformed part of the button to bring the focus to the JMenuBar.
    rootFrame.getJMenuBar().getComponent().transferFocus();
    rootFrame is my main frame on which the JMenubar is added.
    I am using java 4 version.

  • Weird problem using bitwise opertor

    Hi all,
    I have problem with >>> (bitwise logical right shift) operator.
    As an example, the result of this operator on 0x8000 value is not as I expect. As I read about this operator, the result of one bit logical right shift should be 0x4000 but the actual result is 0xC000, and as I see in my test applets there is no difference between >> and >>> operators. I tested this operator on both ST and Gemalto cards and the results were the same.
    short n=(short) 0x8000;
    short x= (short) n >>>1; //Here I expect 0x4000 but the actual result is 0xC000
    short y= (short) n>>1; //Here as I expect the result is 0xC000Would some body please explain such weird action of this operator?
    By the way, Is there any explicit operator for POWER operation in java card or I should use this bitwise operators instead?
    -Thanks a lot
    Edited by: bluefairy on Sep 16, 2010 12:50 AM

    It is quite simple if you know where to look. Open up your Java Card Virtual Machine specification, if you can find it.
    The >>> operator translates to the "sushr" bytecode.
    Let's see what that means...
    Forms
    sushr = 81 (0x51)
    Stack
    &hellip;, value1, value2 &minus;>
    &hellip;, result
    Description
    Both value1 and value2 must be of type short. The values are popped from the operand stack. A short result is calculated by sign-extending value1 to 32 bits (footnote 1) and shifting the result right by s bit positions, with zero extension, where s is the value of the low five bits of value2. The resulting value is then truncated to a 16-bit result. The result is pushed onto the operand stack.
    Footnote 1
    Sign extension to 32 bits ensures that the result computed by this instruction will be exactly equal to that computed by the Java iushr instruction, regardless of the input values. In a Java Card virtual machine the
    expression "0xffff >>> 0x01" yields 0xffff, where ">>>" is performed by the sushr instruction. The same result is rendered by a Java virtual machine.
    So... What does this mean ? This means that your variable is sign-extended to a 32-bit value (meaning that the sign bit is propagated), THEN the right shift is performed.
    See below my comments in the code.
    short n = (short) 0x8000;
    short x = (short) n >>> 1;
    // 0x8000 is extended to 0xFFFF8000
    // Right-shift by 1 bit --> 0xFFFFC000
    // Cast to short --> 0xC000Hope this helps.
    Cheers

  • Weird problem using load() on a BLOB

    I've got a weird bug when trying to load BLOBs via PHP. Here is the code:<P>
    <TT>
    <?<BR>
    // Environment Variables so PHP can find Oracle<BR>
    putenv("TWO_TASK=gonk"); // Name of Oracle Server<BR>
    putenv("ORACLE_SID=ora10"); // Name of Oracle Instance<BR>
    putenv("ORACLE_HOME=/local/apps/oracle/InstantClient");<BR>
    putenv("DYLD_LIBRARY_PATH=/local/apps/oracle/InstantClient");<P>
    // Oracle username, password and connection string<BR>
    define("ORA_CON_UN", "test"); // Oracle Username<BR>
    define("ORA_CON_PW", "blahblah"); // Oracle Password<BR>
    define("ORA_CON_DB", "ora10"); // Oracle Instance<P>
    // Connect to Oracle<BR>
    $conn = OCILogon(ORA_CON_UN, ORA_CON_PW, ORA_CON_DB);<P>
    // SQL Query to execute<BR>
    $query = "SELECT TESTNUM, TESTCHAR, TESTBLOB ";<BR>
    $query .= "FROM TESTING WHERE TESTNUM = 1";<BR>
    $stmt = OCIParse ($conn, $query);<BR>
    OCIExecute($stmt);<BR>
    OCIFetchInto($stmt, &$arr, OCI_RETURN_LOBS);<P>
    $BlobNum = OCIResult($stmt,1);<BR>
    $BlobChar = OCIResult($stmt,2);<BR>
    $RawBlobBlob = OCIResult($stmt,3);<BR>
    $BlobBlob = $RawBlobBlob->load();<P>
    print ("BlobNum:".$BlobNum."\n");<BR>
    print ("BlobChar:".$BlobChar."\n");<BR>
    print ("RawBlobBlob:".$RawBlobBlob."\n");<BR>
    print ("BlobBlob:".$BlobBlob."\n");<BR>
    print("***\n");<BR>
    ?><P>
    </TT>
    Basically, the program works fine under PHP 4.0.5 on a TRU64 box (yes, the BLOB is displayed as a mess of strange characters, but that's cool - if I include a "header("Content-Type: image/jpeg");" line and only output the BLOB by itself the jpeg image stored in the BLOB is displayed properly). However, when it comes to running exactly the same program under PHP 4.4.1 on a OS X box, the program does not display the BLOB. The program is definitely loading the BLOB, as I can get the program to display how big (in bytes) the data in the BLOB is, but the OCI function load() is returning nothing when it should be displaying the data I have in the BLOB.
    <P>
    Anyone got any ideas on what could be causing this behaviour ? It's been driving me nuts for nearly a week!
    <P>
    Cheers,<BR>
    Rocky

    Glad you fixed it.
    See http://www.oracle.com/technology/tech/php/htdocs/php_troubleshooting_faq.html#envvars regarding these lines in your script:
    putenv("ORACLE_HOME=/local/apps/oracle/InstantClient");
    putenv("DYLD_LIBRARY_PATH=/local/apps/oracle/InstantClient");
    -- cj

  • Weird problem using external tables

    Hi,
    Please move my message to the correct forum if it is not in the right one.
    Problem:
    I have the following external table definition:
    CREATE TABLE blabla (
         AANSLUITINGSNR_BV NUMBER(15),
         BSN_NR               NUMBER(9),
         DATUM_AANVANG_UKV          DATE,     
         DATUM_EIND_UKV               DATE,
         BEDR_WAO_WERKN_REFJ          number(18),
         BEDR_WAO_WERKG_REFJ          NUMBER(38)                              
    ORGANIZATION EXTERNAL (
    TYPE oracle_loader
    DEFAULT DIRECTORY nood_dir
    ACCESS PARAMETERS (
    RECORDS DELIMITED BY NEWLINE
    FIELDS TERMINATED BY ';'
    MISSING FIELD VALUES ARE NULL
         "AANSLUITINGSNR_BV",
         "BSN_NR",           
         "DATUM_AANVANG_UKV"      DATE "YYYYMMDD",
         "DATUM_EIND_UKV"          DATE "YYYYMMDD",
         "BEDR_WAO_WERKN_REFJ",
         "BEDR_WAO_WERKG_REFJ"
    LOCATION ('myfile.csv')
    REJECT LIMIT UNLIMITED;
    My file looks like this:
    107031035423278;913487654;20010101;20011231;3231729003;8334195582
    128039008378982;117347347;20010101;20011231;1606131689;4468506457
    134740829467773;450263934;20010101;20011231;9568986434;526201096
    141020256280899;782714783;20010101;20011231;33235678;2398903683
    146130347251892;960256796;20010101;20011231;441706397;2622754437
    151020336151123;441010528;20010101;20011231;8183416412;6077359802
    152888977527618;114572066;20010101;20011231;2370992895;6196483262
    But when selecting the following log is stated:
    error processing column BEDR_WAO_WERKG_REFJ in row 1 for datafile /oracle/db/noodscenario/myfile.csv
    ORA-01722: invalid number
    error processing column BEDR_WAO_WERKG_REFJ in row 2 for datafile /oracle/db/noodscenario/myfile.csv
    ORA-01722: invalid number
    Why is number 8334195582 stated as invalid ?
    Thanks,
    Coen
    Message was edited by:
    Coenos1

    Which Oracle version and OS are you on ? It works perfectly to me :
    $ cat myfile.csv
    107031035423278;913487654;20010101;20011231;3231729003;8334195582
    128039008378982;117347347;20010101;20011231;1606131689;4468506457
    134740829467773;450263934;20010101;20011231;9568986434;526201096
    141020256280899;782714783;20010101;20011231;33235678;2398903683
    146130347251892;960256796;20010101;20011231;441706397;2622754437
    151020336151123;441010528;20010101;20011231;8183416412;6077359802
    152888977527618;114572066;20010101;20011231;2370992895;6196483262
    $ sqlplus test/test
    SQL*Plus: Release 10.2.0.2.0 - Production on Fri Aug 24 10:56:30 2007
    Copyright (c) 1982, 2005, Oracle.  All Rights Reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - Production
    With the Partitioning, OLAP and Data Mining options
    SQL> CREATE TABLE blabla (
      2  AANSLUITINGSNR_BV NUMBER(15),
      3  BSN_NR NUMBER(9),
      4  DATUM_AANVANG_UKV DATE,
      5  DATUM_EIND_UKV DATE,
      6  BEDR_WAO_WERKN_REFJ number(18),
      7  BEDR_WAO_WERKG_REFJ NUMBER(38)
      8  )
      9  ORGANIZATION EXTERNAL (
    10  TYPE oracle_loader
    11  DEFAULT DIRECTORY work
    12  ACCESS PARAMETERS (
    13  RECORDS DELIMITED BY NEWLINE
    14  FIELDS TERMINATED BY ';'
    15  MISSING FIELD VALUES ARE NULL
    16  (
    17  "AANSLUITINGSNR_BV",
    18  "BSN_NR",
    19  "DATUM_AANVANG_UKV" DATE "YYYYMMDD",
    20  "DATUM_EIND_UKV" DATE "YYYYMMDD",
    21  "BEDR_WAO_WERKN_REFJ",
    22  "BEDR_WAO_WERKG_REFJ"
    23  )
    24  )
    25  LOCATION ('myfile.csv')
    26  )
    27* REJECT LIMIT UNLIMITED
    SQL> /
    Table created.
    SQL> select * from blabla;
    AANSLUITINGSNR_BV          BSN_NR DATUM_AAN DATUM_EIN BEDR_WAO_WERKN_REFJ BEDR_WAO_WERKG_REFJ
      107031035423278       913487654 01-JAN-01 31-DEC-01          3231729003          8334195582
      128039008378982       117347347 01-JAN-01 31-DEC-01          1606131689          4468506457
      134740829467773       450263934 01-JAN-01 31-DEC-01          9568986434           526201096
      141020256280899       782714783 01-JAN-01 31-DEC-01            33235678          2398903683
      146130347251892       960256796 01-JAN-01 31-DEC-01           441706397          2622754437
      151020336151123       441010528 01-JAN-01 31-DEC-01          8183416412          6077359802
      152888977527618       114572066 01-JAN-01 31-DEC-01          2370992895          6196483262
    7 rows selected.
    SQL>What do you see within the log file ?

  • Problems when using RUNLOGIC Keyword in Script Logic

    Hello experts,
    I have a problem using RUNLOGIC keyword within Script logic. Both scripts are mentioned below.
    Following scenario:
    - combination of DESTINATION_APP and LOOKUP to multiply values from two source applications in order to to write results in target application
    - data volume in source application VALCHAIN are approx 187.000 records; source app SALES = 500 records
    - created data records in target application QUANTITIES are approx 204.000 records
    Running LOGIC01_QUANTITIES.LGF without "RUNLOGIC" keyword:
    - time to execute logic and write records: 10-12 minutes
    - created records 204.000
    Running LOGIC01_QUANTITIES.LGF via CALL_RUNLOGIC.LGF
    - script does not finish; system produces dumps
    - Tcode ST22 shows error messages called "TSV_TNEW_PAGE_ALLOC_FAILED" as well as "SYSTEM_NO_ROLL" as well as "CALL_FUNCTION_SEND_ERROR"
    Does anybody have a guess for that? Any answer appreciated.
    Thanks a lot!
    ==================================================
    CALL_RUNLOGIC.LGF
    *START_BADI RUNLOGIC
    QUERY=OFF
    WRITE=ON
    LOGIC=LOGIC01_QUANTITIES.LGF
    APPSET=FINPLAN_PERFORM
    APP=VALCHAIN
    CHANGED=PRODUCT
    DEBUG=OFF
    *END_BADI
    ===========================================
    LOGIC01_QUANTITIES.LGF
    *XDIM_MEMBERSET DATASRC=ITEMIZED
    *XDIM_MEMBERSET VERSION=%VERSION_SET%
    *XDIM_MEMBERSET TIME=%TIME_SET%
    *LOOKUP SALES
    *DIM DATASRC="OUTPUT"
    *DIM ITEM="IM_M02"
    *DIM QUANTU="QU_TO"
    *DIM MEASURES="PERIODIC"
    *FOR %LOOP_CENTER%=PC_1000,PC_2000,PC_3000,PC_4000,PC_5000,PC_6000
    *DIM C_%LOOP_CENTER%:PCENTER=%LOOP_CENTER%
    *NEXT
    *ENDLOOKUP
    *DESTINATION_APP=QUANTITIES
    *ADD_DIM COSELE=CE_NONE
    *WHEN PRODUCT.LG
    *IS "1"
      *WHEN MATERIAL
      *IS "MA_NONE"
        *FOR %LOOP_CENTER%=PC_1000,PC_2000,PC_3000,PC_4000,PC_5000,PC_6000
        REC(EXPRESSION=%VALUE%LOOKUP(C_%LOOP_CENTER%), PCENTER=%LOOP_CENTER%, ITEM="IM_M08", DATASRC="CALCULATED")
        *NEXT
      *ELSE
        *FOR %LOOP_CENTER%=PC_1000,PC_2000,PC_3000,PC_4000,PC_5000,PC_6000
        REC(EXPRESSION=%VALUE%LOOKUP(C_%LOOP_CENTER%), PCENTER=%LOOP_CENTER%, ITEM="IM_M05", DATASRC="CALCULATED")
        *NEXT
      *ENDWHEN
    *IS "1000"
      *WHEN MATERIAL
      *IS "MA_NONE"
        *FOR %LOOP_CENTER%=PC_1000,PC_2000,PC_3000,PC_4000,PC_5000,PC_6000
        REC(EXPRESSION=%VALUE%LOOKUP(C_%LOOP_CENTER%)/1000, PCENTER=%LOOP_CENTER%, ITEM="IM_M08", DATASRC="CALCULATED")
        *NEXT
      *ELSE
        *FOR %LOOP_CENTER%=PC_1000,PC_2000,PC_3000,PC_4000,PC_5000,PC_6000
        REC(EXPRESSION=%VALUE%LOOKUP(C_%LOOP_CENTER%)/1000, PCENTER=%LOOP_CENTER%, ITEM="IM_M05", DATASRC="CALCULATED")
        *NEXT
      *ENDWHEN
    *ENDWHEN
    *COMMIT

    Hello,
    This error comes up when there is no enough memory.
    How many members do you have in PRODUCT and how many parallel processes did you set up in PARALLELSCRIPT?
    Also, I'd suggest to put *XDIM_MEMBERSET PRODUCT = %PRODUCT_SET% in your LOGIC01_QUANTITIES.LGF script.
    Did you get anything in RUNLOGIC log? In UJFS you can find logs for every parallel process ran, name if it is just it's time stamp.
    Can you see from those what scripts ran and with what parameters?
    This should simplify resolution of your issue.
    Regards,
    Gersh

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

  • MAXL Script to update Member Filters

    Hoping someone can point me in the right direction.<BR><BR>I've created a MAXL script which changes the lines on a Member Filter, effectively changing it from a READ to a WRITE. The only problem is after the MAXL script has run the User loses the Filter assigned to them.<BR><BR>Is there any way of getting the Filter to stay with the user.<BR><BR>Many Thanks<BR><BR>Mark

    Rosi wrote:
    Hello -
    Yes. Here is an example of the maxl script -
    login 'Hypadmin' '#########' on myessbaseserver;
    spool on to 'mymaxl.log';
    /* Setting the substitution variable */
    alter database appname.databasename set variable 'CurMonth' 'Aug';
    display variable all;
    spool off;
    Logout;
    Exit;
    You can call this maxl from a batch file scheduled from windows scheduled task.
    RegardsThanks very much for your help!

  • Script to export Security file using maxl script

    can anyone provide me the Script to export Security file using maxl script.It should create a log file and a batch file should also be there to schedule the Maxl script.Please help me with this

    Hi,
    You can use something like
    [b]login admin password on localhost;
    [b]spool on to 'c:\temp\log.txt';
    [b]export security_file to data_file C:\temp\sec_file.txt;
    [b]spool off;
    [b]logout;
    Then you can have a batch file that just calls the maxl script
    essmsh name_of_maxl_script.mxl
    The batch script can then be scheduled.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Automation process in Workspace (using MaxL script)

    Hi All,
    I have a MaxL script to export Level 0 data and to update new data in a database
    It is working fine.
    I have tried to schedule it, and its also working fine.
    But according to my requirement, i have to publish this MaxL script in workspace as a job or as a file so that I can run this MaxL script in workspace only.
    I have tried some way but didn't get success.
    So help me to solve my problem
    Thanks in advance

    We are using workspace and jobs to automate our processes. Here is how we do it:
    In the server that runs workspace, we place the batch or exe that needs to be run. Then we set up a job factory using that same batch file.
    Then on workspace we import this batch file as a generic job with the associated job factory and DONE!
    Next time you execute the job from workspace, that batch file will run from your workspace machine.
    send me an email to [email protected] and I'll give you the documentation that we used to set it up in more details.

  • Weird Problem-Login issue

    I am having a weird problem with a web application.Few users are unable to log into system by using Internet explorer,when user enters correct login/password,it goes to redirected page and then come back to orignal login page.If same user opens the page on Firefox then it doesnt have such issue.An intresting thing to note that when same user logs into another web server which is development server,he gets logged in.
    I am unable to understand whether its IE issue or with webserver.I am using Tomcat web server.Following is the code for redirecton and Cookies re being used instead of sessions.
    Cookie mycookie = new Cookie("empid",empid);
                        response.addCookie(mycookie);
                        mycookie.setMaxAge(60*1000);
                        Cookie mycookie1 = new Cookie("role",role);
                        response.addCookie(mycookie1);
                        mycookie1.setMaxAge(60*1000);
                        request.setAttribute("empid" ,empid);
                        request.setAttribute("role" ,role);
                        response.sendRedirect("ReadMe.jsp");Can anyone guide me for this?

    can i ask which hub you used, i'll get exactly the same one to make sure i have the best chance of it working!
    Did you also have the weird keyboard issues heh? it is just weird  

  • 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

  • Can you suggest me how to run multiple calc scripts using singel maxl script

    Hello,
    I am writing a maxl script which should be able to :
    1. update Set Variables for the Essbase DB
    2. Execute multiple calc scripts
    2a. Trying to put specific sleep time within multiple calc scripts.
    Thanks and Regards.

    Why are you looking for a Maxl to run multiple maxls? Can't you use a batch or sh script to do it.
    Unix has a sleep command in batch file try using choice
    Regards
    Celvin

  • Using Login Scripts with OD

    Has anyone had success using login scripts from OD? When I try to add a script to the login prefs, i get an error that the script is not executable.
    Alternately, could anyone suggest an effective way to mount volumes based on user group membership? I've tried adding scripts, automator created apps and workflows to the login items without success.
    thanks.

    Hi
    Good question. I don’t really know. What I can say is I once attended a site where two of Apple Euro’s technical consultants implemented both methods. Neither mentioned either as being ‘best practice’. Both methods worked by the way. My gut feeling is the method not involving a login script would probably be what Apple would steer you towards. Although in my opinion whatever method works for you that gives you what you want would be ‘best practice’.
    Try cross posting this in the Terminal Forum. There are some guys there who are pretty handy when it comes to AppleScript.
    Hope this helps – Tony

Maybe you are looking for

  • Problem reading html and rtf emails

    When I send emails from my pc to my iPhone 5 in html or rtf format they are unreadable as all of the coding instructions are also included in the text when it appears on screen. This was never a problem with my iPhone 4 so I am not sure what has chan

  • Tabular form LOV's not populating correctly on edit from report

    My form has four LOV's and several text fields. Two of the LOV's will not populate (contains null value) from the report when i try to edit the row, however the other two Lov's populate correctly. Any ideas why i can't get the lov's to populate with

  • Oracle Client 11.2.0.3

    Hi All, I want to download Oracle Client 11.2.0.3 for HP UX system. I only see Oracle Client 11.2.0.1 in the Oracle Download page. How do I get Oracle Client 11.2.0.3? Thanks!

  • How can I sell episode?

    Thanks for your help.. 1) When you create and publish an episode in iTunes after it has been approved its automatic free to download but how do you sell it if you want " 0.£79 Buy" ? I am using a podcast maker. Do you have to apply to iTunes first to

  • How to snapshot zfs volume

    Hi All, did anyone have expereience with ZFS volume snapshot and clone? what I am doing here is: create a zfs volume and present it as root disk to LDOM guest domain. I like to have the flexibility to snapshot and clone the volume before any maintena