Question MAXL batch

Hi all

I have a batch which essentially provides a MAXL script to perform the calculation.

Before and after the calculation, batch processing triggers a sending email notification.

You wonder if it's a matter of 'startmaxl'?

It was working fine, but now, after the 11.1.2.3, this is what happens:

He sends notification of BEGINNING, then he runs the MAXL, however, after the completion of MAXL, it won't at the third stage, which means that it totally disconnects after running MAXL.

Here is an example of syntax:

Batch file is:

SETLOCAL

ECHO ------------------------------------------------------------------------------------------- >> %mylog%

ECHO Start Date-time: % DATE TIME %%d % > > % mylog

Mail ECHO sending Job Start > > mylog %

start e:\scripts\SendMail.vbs %ComputerName%@mycompany.com 0 ' notification of beginning: JobName % "" start time: % DATE % % of the TIME, command: % 0, Script: myscript % " ".

ECHO running JobName % > > % mylog

StartMaxl % of myscript

ECHO sending Job finishing enamel > > mylog %

start e:\scripts\SendMail.vbs %ComputerName%@mycompany.com 0 ' notification of beginning: JobName % "" end time: % DATE % % of the TIME, command: % 0, Script: myscript % " ".

ECHO End Date-time: % DATE TIME %%d % > > % mylog

ECHO ------------------------------------------------------------------------------------------- >> %mylog%

ENDLOCAL

The content of the MAXL is as follows:

the LOGFILE=scripts$\\Esslogs\\Agg.log value;

spool to '\\$COMPUTERNAME\\$LOGFILE ';

login password admin on $COMPUTERNAME;

run the calculation sampleApp.sampleDB.AGGAll;

disconnection;

spool off;

"exit";

I think you need:

CALL StartMaxl % myscript

You are invoking one script (StartMaxL.bat) on the other, rather than calling a program (essmsh) as you used to.  If you do not CALL the first script ends when the second begins.

Tags: Business Intelligence

Similar Questions

  • Convert Multiple TIFF files to PDF in Adobe Acrobat 9 Pro with batch processing

    Hello. I use Adobe Acrobat 9 Pro and I am trying to convert approximately 3000 TIFF files into PDF files. Is there a way to batch process all the files at once so that it can be done quickly?

    Hi Alisha Garrett,

    Please see the thread with a similar question:

    Check if that helps.

    Would also like to inform you that Adobe Acrobat 9 is an old version and does not support end of support | Reader 9 and Acrobat 9 (and previous versions)

    Kind regards

    Meenakshi

  • MaxL

    Hello

    Two questions MaxL.

    1; You can run MaxL against a non main, pre-staged at level (7) Essbase server - if yes, what is the syntax to treat the database on the remote server?

    2; You can use MaxL to remove a physical file?

    for example I export data, import data, I now want to delete the data file?

    Thanks for your comments,

    Robert.

    You will need to connect to the database, and then run what you need to do newspaper then disconnection then in the other essbase server, also remember that the export will be local to the essbase server.

    See you soon

    John

    http://John-Goodwin.blogspot.com/

  • Batch processing issues

    I'm scanning a large volume of slides. I'd like to be able to batch process them for the basic settings. I found more frequently than scans of opening, adding a curves layer and hit the auto button does a good job at the beginning of the restoration of the color. I could add an action and that with the exception of a question of batch processing.

    ISSUE - when I check "Override Action" save under "orders", the File Naming section is grayed out. So I did not have the ability to specify the naming of files when I run a lot.

    QUESTION - It seems that when I check "remove color profile warnings" the batch will continue using the color space of the image to be processed, not the working color space. It's fine for what I do now. However if I wanted to use the working color space, I simply include a step in the action to convert the color profile of the job profile?

    Dale

    ISSUE - when I check "Override Action" save under "orders", the File Naming section is grayed out. So I did not have the ability to specify the naming of files when I run a lot.

    The Destination drop-down list control if these fields are assets or grayed out, if you change from Save & Close file you will be able to change these fields. Note, however, that if you use the folder option, then you will need a step save slot in your action otherwise they will not be saved.

    If you want to automatically convert the images you open the color profile of work then go to Edition-> color settings and change the second dropdown RGB to convert RGB working.

  • How can I set up a folder to automatically delete all files after that it was stored there for 30 days

    I want to create a folder so that after thirty days of files placed in there she is deleted and remain only the files that are less than 30 days?

    Thanks to advanced - Vondy

    Create a batchfile with the command shown here modified to suit to the--> http://stackoverflow.com/questions/51054/batch-file-to-delete-files-older-than-n-days

    Place the command batch file in your startup folder. It will run when you start Windows and delete the specified files.

  • Generation automated with filters

    Hi all

    Relatively new to the product here and I recently introduced using security filters. Currently, a BSO cube is built of a cube basic skeleton using maxl + batch scripts and is rebuilt completely every week. I wonder what options are available to integrate these automated generation of filters.

    1. my first thought was to create only the filters on the cube of basic describing specific members and when maxl copies the cube, it will copy the filters with it. The issue I have with this approach is that it does not keep the assignment to specific users. Is it possible to keep the assignments when the base cube is copied on?

    2. then, I just wrote a script maxl to create and grant the filters, which worked well for the moment. But when there are hundreds of filters, it seems not very efficient or easy to maintain.

    Responses are much appreciated.

    Hello Hquin,

    to be back on the topic, you have a very good approach.

    From what I read, you copy a cube of base above with filters, but then you lose the assignment to users that was on the original cube.

    I guess that it is not your basic cube on the same server as your destination cube, otherwise you would not lose assignments. So this would be a solution - the cube to base on the same server and have all users assigned to this too. Then, you create an additional group with all users, where you block the right to the base cube. When you are copying you assign all users group for the destination cube.

    You're talking about hundreds of filters. Please note that group rights add up.

    Best practice: no user gets personal rights, access rights are conducted with groups. Users who belong to the groups.

    Then you build a structure of group/filter. If you do it right, you have a lot of groups, but a user is assigned to only one or a very small number of groups.

    This could be done by MaxL and change probably would occur less frequently.

    Cameron is recently blogged about this. It may be wise to consider this issue.

    http://camerons-blog-for-Essbase-hackers.blogspot.de/2013/08/two-planning-updates-this-week.html

    Kind regards

    Philip Hulsebosch

  • Files not in the Inbox or Outbox v11.1.2

    Hi all

    I'm pretty new to FDM but have used before (with Essbase/Planning v9.3.1). I am now on v11.1.2 and you want to integrate with HFM but I'm having a few problems:

    1. when I import a file, it does not appear in the Inbox folder (it used to do this automatically in the earlier version).
    If I want to see the file then I have to go to the import screen in the web client and click on the button 'Show the file' or 'Show log', the file and the log are displayed in the Inbox > ArchiveRestore folder.

    2. when I get to the point of export of the .dat file does not appear in the Outbox folder (once again he used to do this automatically in the previous version)
    If I want to see this file so I still have to go in the web client, go to the export screen, then click on "View file", it will then appear in the Outbox > ArchiveRestore folder.

    3. when I run a batch load my file is deleted from the Inbox > lots > record of OpenBatch and a new lot created folder but no file is placed in this folder.


    Processes work properly, data circulates in FDM and outside in HFM correctly but I don't see these files without manual intervention, which is not good for me, especially the question of batch charger. I read the readme and the Administrator's guide to see if it is a change to the functionality, but do not see anywhere that it is. Am I missing something?

    Thank you very much
    Stuart

    There is an application setting that controls whether the file is copied or move. Check your settings for the method of archive.

  • It is possible to program a HBR uses the Windows Scheduler?

    It is possible to program a (business rule) HBR running uses the Windows Scheduler? I know how to program calc scripts using Maxl, BATCH BACK and Windows Task Scheduler.
    Thank you

    In the post, I gave a link to it through the use of the PTRC, I might as well post the entire post again because I know of links must be difficult to click and then read...

    Yes, you can use the command-line rule business Launcher, in V11 is available in \Hyperion\products\Essbase\eas\console\bin (9.3 \Hyperion\AnalyticAdministrationServices\console\bin)

    Is an example of how to use it: -.

    If there is no prompt implementation first creates a file and put the following information in him filling the servername, the application name and the name of db example

    ExecDB: "planning/servername/appname/dbname.

    Save as .xml file, so something like connect.xml

    To use the Launcher command-line command from the directory where the utility is the command would be so

    Cmdlnlauncher - Sservername - Uusername - Ppassword - rrule - fconnect.xml

    If you have variables in your article, you can

    In environmental assessments do a right-click on the rule and select "Automate launch Variables", fill in the details and then save is an XML format.

    You just need to reference the xml code in the batch script as described above using the - f parameter.

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • Passage of the maxl script batch file value.

    Hi gurus,

    I want the user to select the scenario he wants to clear the data for a specific intersection in a cube of ASO for running batch file. Files and newspapers is as below

    Batch file:

    ECHO please select a scenario:

    ECHO A. actuals

    B. Budget echo

    choice/m C:AB '-> > enter a letter for the scenario you want to delete: "%1 '"

    IF ERRORLEVEL is 1 Set ScenarioName = law

    IF ERRORLEVEL == 2 Set ScenarioName = bud

    E:\Oracle\Middleware\user_projects\epmsystem3\EssbaseServer\essbaseserver1\bin\startMaxl.bat "C:\Users\TCleardata2.mxl" % ScenarioName %

    MaxL file:

    spool to 'C:\Users\Cleardatalog.txt ';

    / * Value Variables * /.

    Set vScenarioName = $1;

    Echo script: "$vScenarioName";

    connection username pwd on "IP:1423 Server";

    / * Erase data * /.

    ALTER database abc.abc clear data in the region ' {("$1", Final, FY15, P2, ACC_1011640)}' physical;

    echo * clear full *;

    disconnection;

    spool off;

    Log file:

    Scenario: law

    MAXL > connection username pwd on "IP:1423 Server";

    OK/INFO - 1051034 - user [username@pqr] connection.

    OK/INFO - 1241001 - connected to Essbase.

    *****************************************************************************

    MAXL > alter database abc.abc clear data in the region ' {("$1", Final, FY15, P2, ACC_1011640)}' physical;

    ERROR - 1260052 - syntax error in a MDX query on line 1 to token entry ' "$1".

    *****************************************************************************

    Full Claire *.

    MAXL > disconnect;

    Username is disconnected

    ___________________________________________________________________________________-

    in the MAXL if I write: law instead of ' $1 ' it works fine, but I can't take the user input, it is question of syntax?

    Below the command works fine:
    ALTER database abc.abc clear data in the region '{(law, Final, FY15, P2, ACC_1011640)}' physical;

    Can someone please let me know what I'm doing wrong here?

    Thank you

    RN

    I don't think that (alone) allows in this case - the problem is that the single quotes around the specification of the whole region removes extension variable (see Variables).

    Double quotes lose about $1, but also replace the single quotes around the specification of the entire region with quotes, i.e.:

    ALTER database abc.abc clear data in the region '{($1, Final, FY15, ACC_1011640, P2)}' physical;

  • Strange question Essbase - calculation doesnot return good result in MaxL

    Hello

    All veterans of Essbase, need your help for this strange issue.

    We run Essbase on UNIX and we have an OSI application where a daily batch process works for aggregate database of real-world scenario and Budget. Strange things, it's the night aggregation process is not correctly aggregate data, as we see variance between stored and shared hierarchies. But if we manually execute the same aggregation through the service console Regional, aggregation gives good results with zero gap between stored and shared hierarchies.

    In the script of aggregation we clear senior level blocks (with UPDATECALC on OFF), and then use CALC dim on the accounts and the entity to aggregate the results.

    This question has been very strange to my little experience the same calc behaves differently when called in MaxL.

    Any suggestion useful to nail, they are welcome.

    Thanks in advance!

    >

    Is not dense dimension meant to aggregate properly (as it is in a block) in a single pass. I am confused because I know that the theory is in conflict...

    In addition, Parents can be marked TWO PASS (that I see no strong reason to make them two passes).

    Published by: user10725029 on May 2, 2012 20:30

    If the dimension is marked as the size of accounts and and you have two pass members that are not dynamic calc, running the default calc will do the calculation in a single pass. Otherwise if they are stored members, then you must make a twopass calc. If you have twopass in another dimension the dimension of accounts, it must be dynamic or or it will not calculate in two passes

  • Using single quotes with MaxL in batch scripts

    I have the following MaxL, I need to pass to essmsh via a batch script:

    run the calculation ' FIX("Member 1") CLEARDATA "member 2"; ENDFIX' on App.Db;

    The problem is that the single quotes cause problems when it is passed as a variable in the batch script. However, if I change single quotes to double quotes the batch script is happy but the MaxL is not valid.

    Please can anyone suggest how I can get this to work?

    You also try that works

    ( @echo login %USER% identified by %PASS% on %SERVER%; & @echo execute calculation "'FIX(\"Member 1\") CLEARDATA \"Member 2\"; ENDFIX'" on App.Db; & @echo logout; & @echo exit; ) | essmsh
    

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • Batch file executes all commands, MaxL seems to stop their

    I have a batch file that looks like this (removed from the game in the middle which makes extraction of data, this is just to test)



    E:\Oracle\Middleware\EPMSystem11R1\products\Essbase\EssbaseClient-32\bin\startMaxl.cmd "E:\DataExtract\Scripts\MaxL-StartArchive.txt".


    E:\Oracle\Middleware\EPMSystem11R1\products\Essbase\EssbaseClient-32\bin\startMaxl.cmd "E:\DataExtract\Scripts\MaxL-StopArchive.txt".

    It runs the first discovery MaxL file, and then in the said command prompt "MaxL Shell" done and goes back to the command prompt. It is not picking up the second MaxL script.

    We are past just 11.1.2.1 and this has worked well in 11.1.1.3 when using essmsh. No idea why it is not in the script?

    The contents of the two files is:

    MaxL-StartArchive
    login 'admin' identified by 'removedpassword' on 'servername ';

    ALTER database CSHBud.PandL start archive to the file "E:\DataExtract\CurrentExtracts\Archive-CSHBud-PandL.txt";
    ALTER database CSHBud.Wrkforce start archive to the file "E:\DataExtract\CurrentExtracts\Archive-CSHBud-Wrkforce.txt";

    ALTER database PropBud.NOIStmt start archive to the file "E:\DataExtract\CurrentExtracts\Archive-PropBud-NOIStmt.txt";
    ALTER database PropBud.Staffing start archive to the file "E:\DataExtract\CurrentExtracts\Archive-PropBud-Staffing.txt";

    disconnection;

    MaxL-StopArchive
    login 'admin' identified by 'removedpassword' on 'servername ';

    Edit the Archives of end CSHBud.PandL of database;
    Edit the Archives of end CSHBud.Wrkforce of database;

    Edit the Archives of end PropBud.NOIStmt of database;
    Edit the Archives of end PropBud.Staffing of database;

    disconnection;
    "exit";

    >

    E:\Oracle\Middleware\EPMSystem11R1\products\Essbase\EssbaseClient-32\bin\startMaxl.cmd "E:\DataExtract\Scripts\MaxL-StartArchive.txt".

    Had this happen to a customer who has just improved
    Try Cmd /C E:\Oracle\Middleware\EPMSystem11R1\products\Essbase\EssbaseClient-32\bin\startMaxl.cmd "E:\DataExtract\Scripts\MaxL-StartArchive.txt".

  • Batch/Maxl file to view user session in Essbase and time of a batch of 15 m

    Hello

    I want to write a maxl file that will check the session for a user in Essbase.
    If a session is active batch file will be delayed 15 minutes.
    Please let me know how can I achieve this. (The syntax will be useful).

    Thank you
    Aroune

    you want the session to display command. You can find all about it at http://download.oracle.com/docs/cd/E17236_01/epm.1112/esb_tech_ref/maxl_dispsess.html

  • Batch file to run the MaxL script

    Hi all

    Can someone tell me please how to run a MaxL script by using a batch file in Windows (XP). I use Essbase 11.1.1.3.

    It would be great if someone could send a .bat file, I'm not sure of the syntax.

    See you soon,.
    Sahil

    John gives you the right way re the Ref Tech.

    If you want the code, you can check my post (a bit old but still perfectly usable) here:
    http://camerons-blog-for-Essbase-hackers.blogspot.com/2009/07/fixing-plannings-filters.html

    You can download the code via this post as well.

    Kind regards

    Cameron Lackpour

  • MAXL - read dynamically batch file

    Hello

    I'm on a client running Essbase 11.1.2 on Windows. I'm new to the part of the script. I'm writing a maxl script and the script of commands to move data from several systems in the environment. I wish I had maxl load files dynamically load since the name of the file may change from time to time. Need advice on how to do it.

    Thank you
    Matt

    Hi Matt,

    Both Maxl and Batch (.bat, .cmd) files accept input variables. In Maxl, if you run the myscript.mshscript:

    essmsh myscript.msh myDataFile.txt myRulesFile.rul

    inside the Maxl script, you can capture these two file passed in on it (myDataFile.txt myRulesFile.rul) name using the $1 and $2 variables. in this case $1 would receive the value myDataFile.txt, and $2 would be myRulesFile.rul

    This is known as "passing in command line arguments.

    You can do the same thing with the use of batch %1 %2 files...

    Passing the files changing name of your batch file is a bit more complicated, you'll need to read the files from the file system to get new names and move to the MaxlScript:

    CD C:\Folder\where\my\files\are
    for /f %%d in (' dir/s/b / ad') call: runMaxl %.
    Goto: eof

    : runMaxl
    essmsh myscript.msh %1

    pause

    Robb Salzmann

Maybe you are looking for