MAXl in unix

Hi All,
I have written a maxl script in unix. In unix its not supporting the 'ENTER'. So , I have written all teh statemenst in a single line seperated with ';'.
I have also tried with unix new line character like ESC 'o'. This is also not working fine.
Can anyone please tell me what can we do to write different statements in different lines.
Thanks

I assume you are having the issue because you are using a windows editor and then trying to run the maxl script on a Unix system.
Go download the freeware Notepad++, it's like Notepad on steroids.
You can create your script in Windows, then it give options such as setting your "EOL" to "Unix Format".
Robert

Similar Messages

  • Calling maxl from unix script

    Hi guys..I want to call a maxl script from a unix script. i am using ksh shell in unix..
    Can anyone give me the syntax from this..I am not very familiar with this.

    Actually I found there was an Esscmd.sh file too.that's why wanted to be sure about the option of esscmd.
    And would these scripts accept parameters like this:
    <path>Middleware/user_projects/epmsystem1/EssbaseServer/essbaseserver1/bin/startMaxl.sh /maxl-Path/script.mxl 1 2
    and if we place & after the script name would it be a nohup process and run the next ones parallely??:
    <path>Middleware/user_projects/epmsystem1/EssbaseServer/essbaseserver1/bin/startMaxl.sh /maxl-Path/script1.mxl &
    <path>Middleware/user_projects/epmsystem1/EssbaseServer/essbaseserver1/bin/startMaxl.sh /maxl-Path/script2.mxl &
    Sorry if my questions seem stupid.
    I know very little about this tech and just want to clear any confusion and know as much as i can.

  • Maxl in unix - Essbase 7.x

    I'm trying to spawn a maxl through shell script in unix and I'm able to do so. However, if I try to call the same shell script in an ETL tool (Datastage) I get the following error when it tries to login to the server:
    ERROR - 103 - Failed to initialize EssAPI. EssInit returned 1030018.
    I have checked my .profile and it is set correctly. Explains why I'm able to call the same shell script and maxl from unix

    This is my .profile:
    LDR_CNTRL=`MAXDATA=0x30000000`
    export LDR_CNTRL
    export ESSLANG=English_UnitedStates.Latin1@Binary
    export HYPERION_HOME=/home/dsadm/Hyperion
    export ARBORPATH=/home/dsadm/Hyperion/Essbase
    PATH=/usr/bin:/etc:/usr/sbin:/usr/ucb:$HOME/bin:/usr/bin/X11:/sbin:/usr/java131/
    jre/bin:${HYPERION_HOME}:${HYPERION_HOME}/Essbase/bin
    export PATH
    if [ -s "$MAIL" ] # This is at Shell startup. In normal
    then echo "$MAILMSG" # operation, the Shell checks
    fi # periodically.
    . /home/dsadm/Ascential/DataStage/DSEngine/dsenv
    export LIBPATH=$ARBORPATH/bin:$LIBPATH
    PS1=`echo "\n[ "`'$PWD'`echo " ]\n> "`
    alias ll='ls -l'
    set -o vi
    export PROJ=/home/dsadm/Ascential/DataStage/Projects
    export HOSTNAME=`uname -n`
    export DSBIN=/home/dsadm/Ascential/DataStage/DSEngine/bin
    export CGI=/home/dsadm/tomcat/webapps/ROOT/WEB-INF/cgi/

  • Running of maxl in unix

    Hi All,
    I have created a .sh script whihc calls maxl in following way.
    . startMaxl.sh <file of maxl>
    this way the maxl is not getting called.
    Can anyone please le me know how can we call maxl.

    First all you don't mention your version, anyway as a test cd in the essbase bin directory, type ./startMaxl.sh
    using ./startMaxl.sh should set all the env variables and paths.
    as a test when you ./startMaxl.sh from the bin directory with the filename does the maxl shell start? If it does then you can try including the filename when you start it up.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Maxl/esscmds on unix : hiccups

    im kinda doubtful if the environment variables have to be set in the script if the path is already set in the .profile in essbase.should i set the server ,user and password for eg :server =xyzexport server etc i also feel i have a problem with setting the user as changes are not reflecting in the root.also what is the best way to create a maxl or an esscmd script in unix for scheduling.

    This is an excerpt from a script to enable logins after a nightly archive process:############################################################# Backup the old enable log file and start a new log file. #############################################################mv ${LOG_PATH}/${DB_NAME}_enable.log ${LOG_PATH}/${DB_NAME}_enable.log.bak >${LOG_PATH}/${DB_NAME}_enable.logESSCMD << end_esscmdOUTPUT 1 "${LOG_PATH}/${DB_NAME}_enable.log"IFERROR "quit_scr";LOGIN "${SERVER}" "${USER_ID}" "${USER_PWD}";IFERROR "quit_scr";ENABLELOGIN "${APP_NAME}";:quit_screxit;end_esscmd################################################### Log a message if the script fails at any point ###################################################$COMMON_SCRIPT_PATH/chkstat.sh ${LOG_PATH}/${APP_NAME}_enable.logif [ $? != 0 ]then(and so on)##################################################many of the variables are set in the user's profile as part of the connection, others are set in other places of the script. Because it's Unix, the script doesn't have to have any specific extension, as long as it's been marked as an executable. The syntax here shows how the inline code allows the script to be interpreted and fed to the esscmd processor without creating a separate file.As for scheduling, chron works, other things may work better. That's between you and your support department to work out.Good Luck,-Doug

  • UNIX Shell Script - Maxl - executing 4 Maxl script at the same time

    Hi,
    I wrote a UNIX shell script that basically call 4 maxl script to execute at once. But it seem to executing 2 maxl and then it goes to the last script. So, script 4a,4b,4c, & 4d should execute all at the same time. But for some reason at random only two script is being executed. And then it would go to script 5. Anybody have any answer to why it's doing this? Or is it something i'm doing it is incorrect help please?
    I'm running essbase 11.1.2
    Here is my script:
    #!/bin/sh
    # Maxl script to run
    export MAXL_SCRIPT_1=/hyperion/..../script1.maxl
    export MAXL_SCRIPT_2=/hyperion/..../script2.maxl
    export MAXL_SCRIPT_3=/hyperion/..../script3.maxl
    export MAXL_SCRIPT_4a=/hyperion/..../script4a.maxl
    export MAXL_SCRIPT_4b=/hyperion/..../script4b.maxl
    export MAXL_SCRIPT_4c=/hyperion/..../script4c.maxl
    export MAXL_SCRIPT_4d=/hyperion/..../script4d.maxl
    export MAXL_SCRIPT_5=/hyperion/..../script5.maxl
    /usr/bin/sh -c "cd /hyperion/...../bin/; ./startMaxl.sh $MAXL_SCRIPT_1 "
    wait
    /usr/bin/sh -c "cd /hyperion/...../bin/; ./startMaxl.sh $MAXL_SCRIPT_2 "
    wait
    /usr/bin/sh -c "cd /hyperion/...../bin/; ./startMaxl.sh $MAXL_SCRIPT_3 "
    wait
    /usr/bin/sh -c "cd /hyperion/...../bin/; ./startMaxl.sh $MAXL_SCRIPT_4a " &
    /usr/bin/sh -c "cd /hyperion/...../bin/; ./startMaxl.sh $MAXL_SCRIPT_4b " &
    /usr/bin/sh -c "cd /hyperion/...../bin/; ./startMaxl.sh $MAXL_SCRIPT_4c " &
    /usr/bin/sh -c "cd /hyperion/...../bin/; ./startMaxl.sh $MAXL_SCRIPT_4d " &
    wait
    /usr/bin/sh -c "cd /hyperion/...../bin/; ./startMaxl.sh $MAXL_SCRIPT_5 "
    echo Done.
    Thanks,
    Mark

    Thanks!
    I just noticed that the problem was due to something *within my application*.
    I explain:
    i built an application and I want it to be activated by my script.
    I have another script running, but this is not a problem as I discovered later...
    The problem is indeed that my script activates my application, but even when my application is opened, so it succeded, it stays hanged.
    I found that the same thing does not happen with regulare applications, such as Safari or iTunes, so i narrowed down the probglem to my application...
    Is there something i should do to it?
    I checked the "scriptable" checkbox inside my application plist, but the result is still the same...

  • MAXL Script error in UNIX

    Hi All,
    i have a maxl script to export the level 0 data and also a shell script with command "*essmsh maxlscriptname.mxl*" in it, the version that i am working on is essbase 11.1.2 and the platform is in unix.
    I have seen that, for the maxl script to work in version 11 we have to use the command "*startEssmsh.sh*" so that it sets all the variables and then runs the required script.
    The problem is, i dont have startEssmsh.sh in my \bin directory and even if i change my shell script to "*startEssmsh.sh maxlscriptname.mxl*" its not working, it says that startEssmsh.sh not found.
    Kindly let me know on how to run the mxl script in unix with no startEssmsh.sh file present \bin directory. Are there any manual steps to set up the variables and if yes, what are they.
    Thanks,
    Amogh

    The script you are looking for is:
    <MIDDLEWAREHOME>/user_projects/epmsystem1/EssbaseServer/essbaseserver1/bin/startMaxl.sh
    In UNIX you will need to use the full path to startMaxl.sh unless you have <MIDDLEWAREHOME>/user_projects/epmsystem1/EssbaseServer/essbaseserver1/bin in your PATH statement.
    Regards,
    John A. Booth
    http://www.metavero.com

  • Running MAXL on EAS changing permssion on a file that is in UNIX

    Hi,
    11.1.2 Essbase is running on UNIX.
    I was successfully to change the permission of a file that I extracted from a cube when I ran it on unix. Here is my code that I used to make this happen.
    shell chmod 766 '/hyperion/MetaData/Outbound/GL/data_extract.txt';
    My question is my client would like to run the maxl script on demand. They would run the maxl on EAS. I'm having a hard time to getting this work when I run it in EAS. When I run the maxl script i'm getting "Script: ignoring command:shell chmod 766 '/hyperion/MetaData/Outbound/GL/data_extract.txt';
    I'm running this shell script after that file has been dumped into that directory in unix. Is this not possible to do when running maxl on EAS? or is there something i'm doing syntax wise is incorrect?
    Matt
    Edited by: 803592 on Nov 3, 2010 10:10 AM
    Edited by: 803592 on Nov 3, 2010 10:15 AM

    I have just experiences the "beep, beep, beep" after a hard crash.
    The computer is overheating.  The RAM gets hot and everything crashes.
    The system will not restart, all I get is "beep, beep, beep.....beep, beep, beep.....beep, beep, beep.....beep, beep, beep.....beep, beep, beep.....beep, beep, beep.....beep, beep, beep.....beep, beep, beep"
    I pulled the ram, and switched the chips around.  The system is back up without a problem so far.

  • Essbase Maxl Issue - In UNIX

    Hi Everyone,
    We are trying to build dimension using maxl script in unix box.
    Facing syntax and unexpected error. Followed the steps as below.
    1.In Putty, navigated to bin folder and invoked maxl script using ./startMaxl.sh command
    2.logged in using  the command login 'username' 'password' on 'essbaseservername';
    3.Executed the import database command to build dimension having sql as source as below
       import database 'xxx'.'xxx' dimensions connect as 'bis_read' identified by 'bis_read' using server rules_file 'DimChn' on error write to '/home/essproj/Maintenance/Automation/Logs/CTO/Build/Channel1.txt'
    4.Executed the import database command to build dimension having datafile as source as below
       import database 'xxx'.'xxx' dimensions from data_file '/home/essproj/Maintenance/Automation/Source Files/CTO/Measures.txt' using server rules_file 'DimMeas' on error write to             '/home/essproj/Maintenance/Automation/Logs/CTO/Build/Measures_log.txt'
    Throwing the error
    ERROR - 1242021 - (1) Syntax error near ['/'].
    as well as
    ERROR - 1241101 - Unexpected Essbase error 1054036.
    5. We even tried to save the .mxl file in the utf-8 formate and tried to execute the .mxl file at that time we are getting the error as "Segment Fault" but we are using the super user credentials to do this activity.
    Please help on this

    Hi,
    Please using '\' instead of '/'. You can use spool in your mxl script to capture the error better.
    spool on to 'c:\dimbuild.log';
    MAXL Statements & commands;
    import database 'xxx'.'xxx' dimensions from data_file '\home\essproj\Maintenance\Automation\Source Files\CTO\Measures.txt' using server rules_file DimMeas on error write to             '\home\essproj\Maintenance\Automation\Logs\CTO\Build\Measures.log.txt';
    spool off;
    logout;
    exit;
    Also label's also would do the magic..!! Let us know us how it goes..!!
    Thanks
    Amith

  • UNIX Error MaxL

    His, this is my first post at the forum.
    Could you give me a little help?
    How can capture the error out of the MaxL? For example, the MaxL runs, it ends in error, but I want to get this error code and execute an action like finish the application, etc.
    Thanks in advanced...

    MaxL supports error logging,
    Within a MaxL script you can issue commands to generate a log file.
    You can also run shell commands within the script.
    set message level fatal;
    spool on to "logs\\error.log";
    shell mv error.log error.new.log;
    Then I guess you could 'grep' inside the log file to find specific error messages.
    Brian Chow

  • Maxl script in unix

    Hi Experts,
    how to run the maxl script in linux platform in silent mode.I am invoking the maxl script through shell script. If I run the script linux screen shows all the dimension load status for all dimension.
    Thanks in advance.

    That's because STDOUT (which you have redirected to dev/null with ">") and STDERR are separate streams. The error / warning messages are on STDERR.
    Try redirecting with..>/dev/null 2>&1I'm not a shell scripting expert by any means; suggest Googling 'redirect STDOUT STDERR' to understand what's actually going on.
    EDIT: Since the OP has marked this post 'Correct' (Robert really had the complete correct answer first!) I have corrected the syntax to avoid confusion for anyone who gets here in future via search.
    Edited by: TimG on Oct 17, 2012 5:55 AM

  • Looping in Maxl Script - To load multiple files

    Hi,
    I am using Essbase 11.1.2 on UNIX.
    I have maxl script which will load 20 to 30 extraction file. Number is inconsistent. Extraction files will grow each month. Extraction files are with same name with the suffix _1,_2...(2 Gb thing). My previous script was hard coded to load file by file to load up to 50 files. I am trying to remove these hard coded lines, and try to loop the “load” statement. I have tried several ways using while loop in shell to call maxl /msh , but no luck. Any ideas?
    Thanks

    A very similar question was asked recently (but for Windows): Re: Maxl to import datafolders
    What have you tried? Maybe someone here can show you what's wrong with your script.
    The approach I usually take with this type of problem is to write a script that dynamically builds one single MaxL script with the appropriate number of files, rather than calling MaxL multiple times.
    I am generally too ashamed to share my Unix scripts, but at it's most basic, non-error-trapped, probably-inadvisable-and-full-of-holes-for-all-kinds-of-reasons, you could include something like this to build your load script:
    ls filename*.txt | awk {'print "import database etc... "$1" ...on error etc;"'} > scriptname.mshSince you can nest MaxL scripts, you can then reference scriptname.msh from a static 'master' script which handles login / spool on / spool off / logout as appropriate. See http://download.oracle.com/docs/cd/E17236_01/epm.1112/esb_tech_ref/maxl_commands_nesting.html or Cameron's 2009 K'scope presentation: http://odtug.com/apex/f?p=500:575:526121996615242::NO::P575_CONTENT_ID:4605

  • Time Stamp on MAXL Export File

    I use MAXL to export data from our Essbase cube. Is there a way to add a time stamp to the filename?

    I've never been able to do this directly through MaxL. If someone out there knows a way, please share.<BR><BR>The way I do this is by using DOS to rename the file after MaxL has exported it.<BR><BR>So assume you have a MaxL script 'test.mxl' with the following code in it:<BR><BR>login user password on 'localhost';<BR>export database zTest.PandL all data to data_file 'zTestX.txt';<BR>exit;<BR><BR>Then you have your .bat file that calls your MaxL script and in the .bat file you have the following code:<BR><BR>essmsh D:\\MaxL\Test\Test.mxl<BR>ren D:\Hyperion\Essbase\App\zTestX.txt zTest%date:~4,2%-%date:~7,2%-%date:~10%.txt<BR><BR><BR>''The first line calls the MaxL script and upon completion runs the second line which renames the file and adds the date stamp to it.<BR><BR>Don't ask me how to change the date format, I picked up the rename code from someone else. Although, by playing around with it, You can probably get it to look the way you want.<BR><BR>Of course all of this assumes you are using Windows 2000 server. It should work the same in 2003, not sure about NT. You're on your own if it's UNIX, but the same principles should apply, you just need to figure out the code for a Unix command line to do a file rename.<BR><BR><BR>Best of luck.

  • Import Maxl from network file error

    Hi all!
    Im trying to make a Maxl import statement, using files which are inside another computer within the local network.
    he issue im having is that EAS fails to open the file, which i do have access using the file system.
    My script is:
    import database 'CpResIvr'.'ResIvr' data from local text data_file '\\compName\export-essbase\CPResIvr.txt' on error write to
    'c:\ExportErrors\CPResIvr.err';
    I also tried using 'file://compName\export-essbase\CPResIvr.txt'.
    The error i get in either case is 1090004 (Unable to Open file).
    Any help on how do i provide the path to the file will be appretiated,
    Thanks in advance!

    The import database is using the Essbase server's drive/folder/volume access, not your client's.
    You're going to need to map that drive on the Essbase server side first.
    There was a thread on this subject in the past one or two weeks -- search for it and all (well, all regarding the topic of mapping drives) will be revealed.
    Regards,
    Cameron Lackpour
    Edited by: CL on Jun 3, 2010 11:51 AM
    Here's the thread: Re: MAXL -> rule -> remote file location (unix vs windows)

  • 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

Maybe you are looking for

  • [GERMAN] Falsche e-mail Adresse ! kann nicht auf mein "adobe creative cloud desktop" zugreifen ! Wie kann ich das rückgängig machen ?

    Hallo liebes Adobe-Team, Ich habe eine e-mail adresse eingegeben und musst die bestätigen, weil ich "adobe creative cloud desktop" aktualisiert habe! Ich kann mich jetzt nicht mehr in "adobe creative cloud desktop" zugreifen ! Wie kann ich das rückgä

  • ITunes won't open (error)

    When I start iTunes I get this error: iTunes cannot run because it has detected a problem with your audio configuration. What do I need to do?

  • Planning Web Form Menu Issues 9.3.1

    I have upgraded a Planning application from 3.51 to 9.3.1 and after the migration everything works except the custom menus created for the web forms. More specifically, the menu item URL seems to fail because 9.3.1 passes the application name as part

  • No more CalDAV connection with iOS6

    After having updated to iOS6, I have ongoing trouble with my calendar connections to a CalDAV server. Everything seemed to work proper and there was no error message. I encountered the misfunction only after missing calendar entries on the server mai

  • Thinkpad X301 DirectX problem

    Hello All, I hope someone can help with a problem hat has been driving me nuts for a while now. I have a Thinkpad X301 with all latest Lenovo Updates and Windows 7 64bit SP1. (The issue has existed since before SP1 was installled) Simply, any program