Maxl doesn't logout after Calc Script execution

Hi All,
I have a batch script which runs to load data and then aggregate data using calc script. Maxl completes the load and then starts the calculation execution but this never ends. I tried looking into the logs and it shows that Calc Script executed but it won't log off the user and so the next process of the batch doesn't kick-in.
Application Logs:
Thu~May~20~12:40:36~2009~Local~****~****~hadmin~Info~(1012579)~Total Calc Elapsed Time for ~Agg.csc~ : ~1008.66~ seconds
Thu~May~20~12:40:36~2009~Local~****~****~hadmin~Info~(1013274)~Calculation executed
Thu~May~20~12:40:36~2009~Local~****~****~hadmin~Info~(1019018)~Writing Parameters For Database ~[****]
Can anyone suggest me how to resolve the issue. Thanks...

Hi Cameron,
The script which you had given was running just great in Dev with very less data, as the aggregation was just taking 10mins but when I moved the scripts to QA where it loads data from Prod, the aggregation takes almost 2 hours to run and just as the calc script finishes it throws an Network error and Maxl doesn't end the agg script and hangs there and is forced to log off from console after 60mins of inactivity. The hang doesn't let the batch to start the next process.
Network error for app logs:
Tue Jun 2 06:31:51 2009 Local TinP TinP hadmin Info (1012579) Total Calc Elapsed Time for Agg.csc : 7210.71 seconds
Tue Jun 2 06:31:51 2009 Local TinP TinP hadmin Info (1013274) Calculation executed
Tue Jun 2 06:31:51 2009 Local TinP TinP hadmin Info (1019018) Writing Parameters For Database TinP
Tue Jun 2 06:31:51 2009 Local TinP TinP hadmin Error (1042013) Network error 104 : Cannot Receive Data
Tue Jun 2 07:34:23 2009 Local TinP Info (1013220) Supervisor CONSOLE has forced user hadmin to logout
Can you suggest something. Thanks...

Similar Messages

  • Parallel calc script execution

    Hi All,
    We are having HP UX box with 4 processor and have 15 calc scripts. For parallel execution of these scripts We have set Calcparallel as 3 in .cfg file. My query is if these scripts are fired at the same time, will they going to execute in a seq. manner or in parallel fashion.
    We have 11 dim. in which 10 are sparse and 1 is dense in our outline. We have analysed the log but could not figure out anything.
    Any suggestions/guidance !!
    Regards
    -len

    To run three calc scripts simultaneously, you're going to need three people who kick it off in EAS/Excel/MaxL or more likely three separately yet simultaneously scheduled MaxL scripts that execute the calculations.
    From a data integrity (or just your sanity) perspective, it is good that the three calcs are addressing different parts of the database.
    However, from an Essbase data cache/disk controller perspective, the two are going to be spending a lot of time thrashing as Essbase tries to load blocks for all three calcs into and out of memory as the calculations proceed.
    You may find that these processes are faster when they are truly run one after the other.
    Of course the only way to really know is the benchmark both approaches and see what happens.
    Regards,
    Cameron Lackpour
    Edited by: CL on May 16, 2009 5:57 PM
    Whoops, three, not two.
    Edited by: CL on May 16, 2009 5:57 PM
    Whoops again, two referred to the data cache/disk controller, not the three calcs. I should not reread my posts and think that I can "improve" them.

  • Conditional calc script execution

    Dear all,
    I'm trying to implement a calculation that is executed only for entities that are flagged with a '1' on a technical account. The only solution that comes to my mind goes like this:
    FIX (Entity1, Entity2, Entity3)
    "TargetAccount"
    IF ("ENTITY_FLAG" == 1)
    SourceAccount;
    ENDIF
    ENDFIX
    As there are hundreds of potential lines in the original calcuation, this may become a tedious task with unreadable code. Does anybody have an idea for a shorter or global alternative (for a whole calc script)?
    Thanks in advance!
    Regards,
    Lars

    Dear GlennS,
    Thanks for your reply. TargetAccount and SourceAccount are always different. The one calculation block is the same for all entities. In simple but incorrect syntax the script would be like:
    FIX (@IDESCENDANTS ("All Entities"))
    /* Execute calc only if flag is set for respective entity */
    IF (FLAG_ACCT == 1)
    TargetAccount1 = SourceAccountA1 + SourceAccountA2
    TargetAccountn = SourceAccountAn + SourceAccountAn
    ENDIF
    ENDFIX
    As there are many TargetAccounts involved the correct IF/block syntax (as outlined in my initial post) would be pain to write and read. Any suggestions?
    Regards,
    Lars

  • Calc script for calculating current month data after loading

    Hi,
    I'm trying to write a script to do a calculation to all dimension after load current month data; it ran successfully but current month data is all zero; can someone tell me what i'm doing wrong?
    SET CACHE HIGH;
    SET UPDATECALC OFF;
    SET CALCPARALLEL 4;
    FIX (&CurMon, &CurYr)
    AGG (Sparse2, Sparse3, Sparse 4, Sparse 5, Sparse 6);
    ENDFIX
    Dense1 – Dynamic Calc
    Period: Dense – Dynamic Calc
    Year: Sparse – Dynamic Calc
    Sparse2 – Label Only
    Sparse3 – Label Only
    Sparse 4– Label Only
    Sparse5 – Label Only
    Sparse6 – Label Only
    Thanks!

    Natilie,
    If I understand you correctly, you are loading data, then clearing out the current month->current year, and then aggregating current month->current year? There isn't going to be any data there -- you've cleared it out in your second step.
    I think the order you want is:
    1) Clear out the current month->current year to be sure it's a good load
    2) Load the current month->current year
    3) Aggregate the current month->current year
    This could be done with a single Maxl that controls two calc scripts and one import database (clear, import, agg) or you could do it manually.
    The default calc is (generally) equivalent to CALC ALL using db properties (UPDATECALC, AGGMISSG, etc.). There shouldn't be practical difference between that and the AGG portion of your calc.
    I would again confirm that all of your data is at the lowest level, i.e., you can navigate to leaf level on all dimensions and pull a data value before you aggregate. Perhaps you are loading to upper level members and don't realize it. I often use the Excel add-in's Styles to tell me if I'm at the lowest level of a db or not.
    Regards,
    Cameron Lackpour

  • 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

  • Server crashes after running Calc Scripts Verison II

    I running 11.1.2.1 on my laptop, and after After runnning a calc scripts ... and shutting down essbase I am attempting manually start up my Essbase system, and now the Foundation services, and essbase admin services are taking forever too start, then once i am able too start Essbase EAS/ Adminstration Server = stopped
    are these the right logs
    C:\Oracle\Middleware\user_projects\epmsystem1\diagnostics\logs\services\HyS9FoundationServices-sysout
    C:\Oracle\Middleware\user_projects\epmsystem1\diagnostics\logs\services\HyS9eas-sysout
    Please Advise
    Edited by: Next Level on May 31, 2012 2:20 PM
    Edited by: Next Level on May 31, 2012 2:24 PM

    HYS9FoundationServices-syserr.log
    May 31, 2012 5:36:49 PM oracle.security.jps.internal.credstore.ssp.CsfWalletManager openWallet
    WARNING: Opening of wallet based credential store failed. Reason java.io.IOException: PKI-02002: Unable to open the wallet. Check password.
    oracle.security.jps.service.credstore.CredStoreException: JPS-01syserr050: Opening of wallet based credential store failed. Reason java.io.IOException: PKI-02002: Unable to open the wallet. Check password.
    Please advise

  • To View Calc Scripts and Report scripts via MaxL or Esscmd

    Hi all,
    Can somebody tell how to read any calc script or report script in any database with the help of MaxL or Esscmd?
    For example if there is any .csc or .rep file, I want to read the context of the file i.e. the script that is written in the file. Is it possible via MaxL or Esscmd?
    Does Hyperion supports this functionality?
    Regards,
    James

    You know that calc and report scripts are text files, right?
    They are typically stored in the database directory, although that is not a requirement; they can be stored in other client-accessible directories and run from there.
    I haven't done it in ages, but is also possible to pass calc and report scripts to Essbase via the API. I can't remember if the API will let you enumerate calc scripts from the database directory. I sort of strongly think yes. Someone who is more knowledgeable will either correct or refute that statement pretty soon. :)
    If you want to list the objects (calcs or reports): http://download.oracle.com/docs/cd/E10530_01/doc/epm.931/html_esb_techref/techref.htm
    A few things that you can do with MaxL re calc scripts:
    1) execute calculations, including a string that you pass through MaxL: http://download.oracle.com/docs/cd/E10530_01/doc/epm.931/html_esb_techref/maxl/ddl/statements/excalc.htm
    2) delete calculations: http://download.oracle.com/docs/cd/E10530_01/doc/epm.931/html_esb_techref/maxl/ddl/statements/drpcalc.htm
    3) list the calcs: http://download.oracle.com/docs/cd/E10530_01/doc/epm.931/html_esb_techref/maxl/ddl/statements/dispclc.htm
    4) create the calc: http://download.oracle.com/docs/cd/E10530_01/doc/epm.931/html_esb_techref/maxl/ddl/statements/crecalc.htm
    Report scripts are sort of a poor relation in MaxL (and were in Esscmd as well). You can basically only run a report as kind of export: http://download.oracle.com/docs/cd/E10530_01/doc/epm.931/html_esb_techref/maxl/ddl/statements/exprt.htm
    So, I think it's mostly there, especially the display object command. BTW, if MaxL can list it, the API can too -- how else does MaxL work?
    Regards,
    Cameron Lackpour
    Edited by: CL on Dec 1, 2008 11:53 PM
    Didn't post the right URLs. Now fixed. CL

  • Help 'Exiting' after Automator Shell Script Execution

    Hello,
    I've recently installed and got running GCalDaemon (http://gcaldaemon.sourceforge.net/) which allows me to Synch Rainlendar <-> Google Calendar through iCal (You can also synch iCal <-> Google Calendar). I needed to start up a shell script/applescript after each startup/login in order for GCalDaemon to start the synching process each time and continue to do so at the timed intervals. I would do so by the following terminal code:
    cd /usr/local/sbin/GCALDaemon/bin
    ./standalone-start.sh
    I then tried automating this process and came across shell script execution through Automator. I did so and created a .app with the above mentioned code. This works and it starts up the necessary .sh file I need and the snyching works under StartUp. My concern is however, how do I exit terminal once the code has executed the necessary file? All I have in my .app is the above mentioned code for now. I just need it to exit terminal because on startup or after starting the program, I get this issue (See Attachment)
    This continues to run, so my guess is that I need to add code to exit terminal and allow the .app to close itself properly after doing so.
    Please guide me in the right direction.
    Picture Belows shows what happens when I run the Automator App. It continues to run until I quit out of the app manually (TheGCal programs works fine though). I feel I need to have app quit Terminal or fully end the process and quit out on it's own.
    Thanks
    <table style="width:auto;"><tr><td></td></tr><tr><td style="font-family:arial,sans-serif; font-size:11px; text-align:right">From GCalDaemon</td></tr></table>

    i redirected the command output to /dev/null which is unix equivalent of a black hole and I also redirected error output to standard output in case the script produces any errors.
    also & at the end tells it to continue without waiting for the script to finish.
    Message was edited by: V.K.

  • Execute Calc script in Maxl with compained all script

    Hi,
    I have nearly 20 Calc script in one of the application. I need to run all the script once I change the calc script.
    Execute calculation default 'databasename.application-name' ;
    Is there any command in MaxL directly use to run all the calc script?
    Kindly let me know.

    I'm not sure why anyone would want to run 20 scripts. If I wanted to do that I would combine them into one or two. If your heart is set on running ALL the scripts in your database, You could do something like create a generic MaxL script like:
    Execute calculation sample.basic.$1
    then in your batch script have a statement that selects all of the files that end in .csc for the directory and pass them to the script essmsh mymaxl.mxl Filename
    I'll assume either the scripts are named in the order you want them to run or you could rename them with a numberic to indicate the run order.

  • Why does the calc script screen freezes after executing the script

    Hello Everyone:
    When a calc script gets executed, the calc Script in the ASS freezes even though the calc script has finished it´s execution. Does anybody knows why? How can i prevent these to happen?
    Hope someone could help me, thanks in advanced
    Best Regards

    if you execute the calc script in foreground, console will freezes and it will not allow any thing to do.
    Once script is completed, console will be freed.
    You can execute the calc script in back ground so that you can continue your work and you can track the progress in the sessions.

  • Executing a calc script in MAXL

    "Heaven to murgatroid" this has completely defeated me today so all help will be gratefully accepted.
    I have an Essbase application (NPG3BK) with 4 databases (BMR, Detail, Main & Workforce)  - 3 are Planning Types and a fourth is added for reporting.
    I have 1 Essbase Calc script at application level - the calc script is called ExBinAll. It verifies perfectly and I can run it manually against any of the databases.
    I have a MAXL script to run the calculation against each of the databases under NPG3BK. The relevant piece of code is...
    alter system load application 'NPG3BK';
    execute calculation NPG3BK.'ExBinAll.csc' on database BMR;
    However when the batch runs I get this message...
    ERROR - 1012500 - The requested calc script [ExBinAll.csc] not found.
    Environment: Win2008 R2
    Essbase: 11.1.2.1.600
    Logged on to Win2008 with a server administrator ID.
    Logged into Essbase/MAXL with an Hyperion administrator ID.
    I have checked the application name and calc script name SO many times through EAS and Windows Explorer. It's there!!
    Can anyone out there resolve this for me?
    Many thanks for your help
    PW

    Celvin, many thanks - unfortunately that didn't work either..
    I've tried..
    execute calculation 'NPG3BK'.'ExBinAll' on database BMR;
    execute calculation 'NPG3BK'.'ExBinAll' on database 'BMR';
    execute calculation 'NPG3BK'.'ExBinAll.csc' on database BMR;
    execute calculation 'NPG3BK'.'ExBinAll.csc' on database 'BMR';  and ALL got the same error code 1012500
    So I decided to try store the calcscript ExBinAll under the database NPG3BK.BMR and run it with the following syntax ..
    execute calculation NPG3BK.BMR.'ExBinAll.csc';   gives      ERROR - 1012864 - Calculation script name [ExBinAll.csc] is longer than [8] characters.
    execute calculation NPG3BK.BMR.'ExBinAll';   gives      the original (1012500) error.
    execute calculation 'NPG3BK'.'BMR'.'TEST.csc';    gives      the original (1012500) error.  {ERROR - 1012500 - The requested calc script [TEST] not found.}
    Any other ideas from anyone?

  • How do you stop multiple users executing the same calc script at the same time?

    We have an issue when  users uplaod a spreadsheet and then run a calc script. at one time we have multiple exectuions of the script running.
    This slows up the system and we have to go cancel all the executions and run it again.
    Can we stop this and put them on a queue, so only one execution of the calc happens at one time. Or stop multiple executions getting submitted at all.

    You could use EXCLUSIVECALC to stop more than one calc running at the same time, although this will apply to all applications on your server.  And it doesn't just stop the same calc being launched twice.  Easier than the alternatives I can think of though, if it works for you.

  • Essbase 9.3 Calc scripts. Pb with dates. How to convert (string = number) ?

    Hello,
    I've a problem with Essbase(Planning?) Scripts on version 9.3. It looks simple but I do not find any (clean) solution :
    On my Essbase database, I have a member called "Reference_Date" on my axis Indicators. It is a date data type, that is to say, it displays a number corresponding to a YYYYMMDD format. For example : 20091029 for October 29th 2009.
    In calc scripts I often need to compare the month included in that "Reference_Date" with the current Member of my Time Axis (I have 12 Months members based on the format M02 for February for example). The final aim is to calculate a number of complete years since that "Reference_Date".
    But theses two elements are not of the same "type" (one is a number value and the other is a "member" in Time Axis). So I'm forced to convert one of this two elements in order to compare it.
    For example I can extract the month value of the "Reference_Date"' and put an "M" before it to have a Time member equivalent or I can convert the member Name M10 to a number (10))
    in both cases I have the same type problem : I don't know how to convert a string into a number nor how to convert a number into a string.
    (For example @CONCATENATE doesn't work with numbers). and that my only remaining problem.
    I didn't find any Essbase Function which do this (conversion number <=>string).
    Is anyone have an Idea ?
    Thanks for your help
    Best regards

    I don't know any way for you to compare your data against your metadata. Not directly. To me it makes little enough sense to try that I'm not surprised the developers didn't provide for it.
    I've converted member names to strings, manipulated the strings (calc script functions are not good at this), and turned them back into member names, but that's really the only use I've had for string manipulation. I don't think an equivalency operator even exists for string data. And I see no way to begin thinking of a member name, once converted to a string, as a number.
    It makes even less sense to me to try thinking of a data value as a string. Even text values in Sys 11 are stored as numbers. Not encoded characters, but just a number to look up somewhere.
    I think you can do what you want though, with something like this...
    IF (@ISMBR("FY08"))
    vYr = 2008;
    ELSEIF (@ISMBR("FY09"))
    vYr = 2009;
    ENDIF;
    IF (@ISMBR("M01"))
    vMth = 1;
    ELSEIF (@ISMBR("M02"))
    vMth = = 2;
    ENDIF;
    "Years_Since_Reference" = ((vYr * 100) + Mth) - ("Reference_Date" / 12);
    Obviously, the math will need some work, coz that doesn't actually work, but the logic above essentially turns your metadata into numbers, which is what you are after.
    Good luck,
    -- Joe

  • Calc Scripts in sequence

    Hi All,
    We have requirment to run some calc scripts in sequence as they are dependent. If we merge all the scripts in one script then due to dependency calculations are not done or not giving proper result.
    Is there any way so that calculation scripts are setup in sequence in one calculation script and Script One provides details to the Script Two and so on. We do not want to use the Business rules due to the considering the security assignment which will be very tedious job.
    Thanks & Regards,
    Sravan Kumar.

    Business rules and sequences would be the correct procedure to use with Planning.
    Though I don't see how running separate calc scripts is going to be different that putting them in one calc script, that doesn't make any sense.
    If you want to run the calc scripts in sequence then you could batch them up using maxl.
    I am not sure what information you want to pass between calc script but you can use subsitution variables that be used in either script.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Calc Scripts

    <p>Hello,  I am new to Essbase and calcscripts as well as this discussion board. I have been reading a calc script in hopes of optimizing itsince it seems to take longer than anticpated.  Someone elsewrote it but I am trying to figure if parts of it are really doinganything except taking up time.  The following snipet is whatexactly I am curious about.</p><p> </p><p>**I have placed comments amongst the calc script to specifyareas that I am unclear about.</p><p> </p><p>Fix(currentyear, financial, CalcMAct)</p><p>SET AGGMISSG OFF;</p><p>Fix (HEL, Init, "NoMfgS", @RELATIVE("TotSellMeth", 0))<br>     DataCopy "HEGS" TO"GoodS@L";<br>     DataCopy "HECS" TO"GoodP";</p><p>     // Why fix here when nothing seems tohappen below and a new fix proceeds it after the last endfix?<br>      Fix ("GoodS@ L","GoodP")  <br>          @IDESCENDANTS(UB88);  // To me this doesn't seem to be doing much<br>      EndFix<br>EndFix<br>SET AGGMISSG ON;</p><p><br>Fix (@RELATIVE (UB88, 0))  //Is this doing anything since anew fix comes right after it?</p><p>//  I understand this fix because it is fixating andcopying but don't understand how the other fix helped get to thispoint.<br>Fix (@RELATIVE ("TotSellMeth", 0), @RELATIVE("TotMan", 0))<br>      DataCopyWorking->Init->"GoodQ" TOAct->Init->"GoodQ";<br>EndFix<br><br>Fix (Act, Init)  //  What is this doing if another fixproceeds right after it?<br><br>Fix (@RELATIVE ("TotSellMeth", 0), @RELATIVE("TotalMan", 0))</p><p>.</p><p>.</p><p>.</p><p>.</p><p>As I stated I am a newbie and I am not sure if those fixes I hadcomments on are indeed necessary or if they are just loadingdatablocks into storage and not being used to really fixate onanything.  I was under the impression from a course I took athyperion that to fixate on a particular datablock you use one fixor nested fixes.  </p>

    The line which you don't think is doing anything is applying the member calcs (from the outline) to the descendants of UB88. When a member name is placed by itself as a statment, it means to use the calculation that is in the outline, basically as a calc of that item at the time it is called, nesting it in the fix as it is simply means that there is a datacopy (probably to create blocks) and then a focus forther in on the two dimesions and recalcing Descendents of UB88.<BR><BR>Nesting fixes like this is not an unusual way of doing things. I might fix on a date in a single fix statement, then nest a couple of other fixes on other dimensions within the first fix, maybe doing sonething different in different regions.

Maybe you are looking for