Run calc script via business rule

Hello all,
I have calc scripts and business rules in my hyperion essbase.
one of the calc scripts e.g. aggregates some values.
In the business rule i copied the code from the calc script and this business rule can be executed in the planning tool.
Now, everytime when i change the code from the calc script, i have to change same things at the business rule.
And now my question:
Is it possible to start a calc script with the business rule?
e.g. content of business rule: execute "calc_aggregate"
Is there a command?
Then it would save time and i only have to change the calc script and not both.
Thanks for your efforts,
Chris

1) try to use essbase 9.3 with dataexport command in calc script (this version essbase is compatible with planning versions 9x and 4.1)
2) you can write (or found in google) UDF function for run system command or (and) export data set
3) you can run system command from Planning web and run CSC and RUL from essmsh
ER

Similar Messages

  • Calc another calc script from a calc script or business rule

    is there a way to call a common calc script segment from other calc scripts or business rules. I do not want to replicate common code in multiple business rules. This common code updates the Essbase database, so it would need to take Essbase members as parameters and be able issue calculation commands. I do not find this possible with custom macros or custom functions. Thanks - Davis ([email protected])

    I do not think you can call another calc script from within a calc script. An alternative would be to write a MaxL script that strings multiple calc scripts together.Good luck.

  • Running Calc Scripts via Workspace

    Currently users are given 'admin' access to Essbase. That way when they are in Workspace they can see and run calc scripts on their apps. Is there a more proper way to give users the ability to run a calc on their apps without giving them 'admin' access?

    We have the calc scripts that run for data loads and other automated processes. Some of these calc's which are just AGG's and Calc Dim's I guess could be BR's too, but then we would have duplicates......
    Thats the sorry reason :)

  • Using variables in Calc scripts and Business Rules

    I am sure there have been previous discussions about this, but can somebody let me know the benefits of using variables in Calc scripts and BRs?
    Thanks,
    A

    I have never used calc variables and after reading a study guide, which talked about them, I couldn't really understand the benefits.^^^I use variables all the time to make abstract difficult formulas. Below is an example.
    /*     Declare variables     */
    VAR varSalaryCosts ;
    VAR varProdOHLabXXXX ;
    VAR varXXXX ;
    A whole bunch of code here along with very limited FIX statement and then...
    "Salaried Labor"
         varSalaryCosts = "Salary Costs"->"No Department"->"No Category"->"Salaried" -
                             "Wage Bonus"->"No Department"->"No Category"->"Salaried" -
                             "YYYY Retention Bonus 40%"->"No Department"->"No Category"->"Salaried" -
                             "YYYY 60% Ret Bonus Accrual"->"No Department"->"No Category"->"Salaried" ;
         varProdOHLabXXXX = "Number of Employees"->"ZZZZDepartments"->"Codes"->"Salaried" +
                             "Number of Employees"->"Blah Departments"->"Codes"->"Salaried" +
                             "Number of Employees"->"Humph Departments"->"Codes"->"Salaried" +
                             "Number of Employees"->"TTTT"->"Codes"->"Salaried" ;
         "Salaried Labor" = varSalaryCosts * ("Number of Employees"->"Salaried" / varProdOHLabXXXX) ;
    )The last formula is how the formula was described to me by the business owner. I find it to be much easier to read than something like:
    "Salaried Labor" = ("Salary Costs"->"No Department"->"No Category"->"Salaried" -
                             "Wage Bonus"->"No Department"->"No Category"->"Salaried" -
                             "YYYY Retention Bonus 40%"->"No Department"->"No Category"->"Salaried" -
                             "YYYY 60% Ret Bonus Accrual"->"No Department"->"No Category"->"Salaried") *
                             ("Number of Employees"->"Salaried" /
                             ("Number of Employees"->"ZZZZDepartments"->"Codes"->"Salaried" +           
                             "Number of Employees"->"Blah Departments"->"Codes"->"Salaried" +
                             "Number of Employees"->"Humph Departments"->"Codes"->"Salaried" +     
                             "Number of Employees"->"TTTT"->"Codes"->"Salaried")) ;I have used ARRAY in a really-cool-but-alas-not-invented-by-me calc script to do currency conversion in Planning better than Planning does currency conversion. (How's that for a run-on sentence?) It is one of the six blog posts I am working on and I will finish it soon, I hope. I am sort of in thrash mode right now. It does have its uses and I'll try to remember to update this thread when I'm done.
    Regards,
    Cameron Lackpour

  • Run a script in a rule

    I have a script that run in a rule condition. I was able to run the condition in a block but it works very on and off.This has really going me crazy.And this seems not at all robust.What is the best way to run a script in a rule?

    Hi,
    Do you want to run two BR's parallel y, why you are not going for sequences option, you can divide your rule in parts and run the rules in the sequence you want.
    run one Business Rule/Calculation Script in another Business Rule/Calculation Script (Run one BR/Calc Script within another BR)?I don't think so you can call one BR from other, if you want the same might be you have to write CDF for calling the BR/CalcScript within the BR. or you can use Essbase Macro option.(+I am not sure for this option+)
    Thanks,
    Avneet Singh Bhatia

  • OBIEE 11g write back to Essbase and run calc script feature

    Hi,
    I have a requirement to write back into Essbase Cube and run calc script from OBIEE dashboard.
    From what i have search on google, we must deploy additional Java Script into weblogic, but that is before OBIEE 11.1.1.6.
    I have 2 question:
    - Does OBIEE 11.1.1.6 already supported native write-back to Essbase and running calcscript?
    - Anyone has example of the custom java-script for write back and running calcscript?
    And another, if there are requirement like this, is it better to install Essbase Add-in on Microsoft Excel and do the what-if analysis there, then just display the report on OBIEE dashboard? (based on user-friendliness and the complexity on maintenance)
    Thanks in advance.

    Hi,
    Even I am trying to achieve the same thing as you have mentioned but think that it is not possible to achieve easily in obiee 11.1.1.6, though we do have a work around to perform a writeback in Essbase cube using JAPI as mentioned below.
    Also we can call Hyperion reports from OBIEE using Action Links and also pass parameters to the same but dont know if it runs calculation script.
    Below link could be useful for you for write back workaround.
    http://oraclebizint.wordpress.com/2009/05/25/oracle-bi-ee-10-1-3-4-1-writebacks-to-essbase-using-japi-and-custom-html-part-1/
    Let me know in case you have found out anything else related to same.
    Thanks,

  • Creating numbered list via business rule in a form

    The problem is explained in thread subject, i have a need to create a numbered list in a coulmn of some form via business rule.
    i tried this, but numeration start from 1696 and adds 2 for every next row
    FIX("plan1")
    FIX("Final")
    FIX("NormC_NA")
    FIX("Local")
    FIX("BegBalance")
    FIX({RTP_Year})
    FIX("AgrSN")
    FIX("Administration")
    FIX(@Descendants("Agreements",0))
    set createnonmissingblk on;
    "HSP_InputValue"(sn = sn + 1; "Region" = sn;)
    set createnonmissingblk off;
    ENDFIX
    ENDFIX
    ENDFIX
    ENDFIX
    ENDFIX
    ENDFIX
    ENDFIX
    ENDFIX
    ENDFIX
    sorry, that was stupid question, overworked, didn't notice i fixed the same dimension twice via two different members, after i worked ths out everything became fine.
    Again sorry for unnecessary disturbance.
    Edited by: s0uLr1pPeR on 14.03.2012 8:44
    Edited by: s0uLr1pPeR on 14.03.2012 9:04

    one more suggestion i want to give it to you,
    when you are writing a Base fix
    you can also write in this way
    FIX("plan1","Final","NormC_NA","Local",[RTP_Year], etc)
    /* Your Calculation */
    ENDFIX
    Thanks,
    Avneet

  • Can "Planners" run calc script from the Planning web?

    This is probably a really naive question.
    However, can planners run a simple calc script(created in Essbase/AAS) from Workspace/Planning Web? If so what access would they be need to setup in Shared Service?
    Or do we have to convert the calc script into a Business Rule and then grant access to the users?

    John,
    Here are the roles that i assigned my user and he can view/launch the calc scripts from Planning Web without actually being an admin( i think)
    Analytic Servers : server access
    Business Rules: Administrator
    Planning App : Interactive User
    APS : Provisioning Manager
    I would also like to conver the calc script to a BR as suggested, but not sure why i see no users available in the Business Rules-> administration tab.
    As indicated above, the use has been provisioned as a BR admin!
    Also, i tried refreshing the app with filters, refreshing the user list from BR->admin(right mouse), de-provision and re-provision the user! Any ideas??

  • Cannot run calc script from Analyzer

    I just did an upgrade from 6.5 to 6.5.1 and I am unable to run one calc script on a particular database. I can run other calc scripts, just not this one. I get no error message or anything, I can keep clicking the calc button, but it does not run.Strangely, when I click the calc button, Analyzer puts a text file in the directory \\analyzer\appserver\bin with the user name (ex. gcrisci.txt) When you open this file, it is the calc script from Essbase I was attempting to run.I recall running into a problem like this in the past due to the size of the calc script. I thought the solution was to go into Analyzer.properties file and increase the MaxDataCellLimit values. The default is 50000, I've increased it up to 500000 with no resolution. So, I'm thinking maybe this isn't the fix.Does anyone know of a solution to this problem?Thank you.

    John,
    Here are the roles that i assigned my user and he can view/launch the calc scripts from Planning Web without actually being an admin( i think)
    Analytic Servers : server access
    Business Rules: Administrator
    Planning App : Interactive User
    APS : Provisioning Manager
    I would also like to conver the calc script to a BR as suggested, but not sure why i see no users available in the Business Rules-> administration tab.
    As indicated above, the use has been provisioned as a BR admin!
    Also, i tried refreshing the app with filters, refreshing the user list from BR->admin(right mouse), de-provision and re-provision the user! Any ideas??

  • Sequence will not validate with run time prompts in business rules

    I am in Hyperion Planning v 1.1.1.3, with Workforce initialized. I am creating a sequence of business rules. The rules use run time prompts within them and validate when used on their own. However, when I insert them in a sequence the sequence will not validate, apparently due to the run time prompts.
    The sequence returns the error: Cannot calculate. Essbase Error(1200323): Error parsing formula for [FIX STATEMENT] (line 7): expression expected after [(].
    Line 7 in the business rule is as follows:
    FIX ([rtpYear],[rtpScenario],[rtpVer],[rtpCC],[rtpBU],[rtpEmp])
    The problem is not isolated to this business rule, it occurs with any rule I try.
    Can sequences function with run time prompts in the included business rules?
    Stephen

    I have figured out that if any rtp is hidden in the business rule, the sequence will not validate. Is this expected behavior for sequences?
    Additionally, hiding the variables in the sequence has no effect if the variables are not hidden in the rule. When launched from a menu in a web form, the user is prompted for values for all variables (except for the Execution Database Name) although they are prepopulated based on the members in the POV, Page, etc. Is this also expected behavior?
    I also find that it won't validate if "Merge launch variables" is selected (I have included rules associated with different plan types and with different dimensionality, so this may be expected). The user is prompted to provide values for every variable in each rule in the sequence, many of them duplicates (though, again, they are prepopulated based on members in the form).
    Stephen

  • 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

  • Running Bash scripts via /Library/LaunchDaemons

    I have a .plist in /Library/LaunchDaemons that calls a Bash script that lives in /usr/bin.. ...
    With the script, one if the things I am trying to do is copy a directory from a non-admin user account, and place it on the administrator desktop.. Something like :
    cp -R /Users/myuser/theDirectoryIwant /Users/admin/Desktop
    The above code runs fine from Termimal ( I do 'sudo' first '), but if I add the line to the script...nothing seems to happen..I know the script is running ( I have it set for every hour in the .plist file, and I can see output in the Console) ...since it will run code such as this just fine :
    cd ~/Desktop
    mkdir Test
    I am guessing that anything called from usr/bin would not need 'sudo' in a shell script there since it is already running as root?

    I would suggest that you test your launchd environment out by capturing the output from
    date >/tmp/myscript.txt
    pwd >>/tmp/myscript.txt
    id >>/tmp/myscript.txt
    printenv >>/tmp/myscript.txt
    Now allow this to be run via your launchd .plist and then look at the output. That should tell you what your environment looks like when your .plist runs.

  • Run AS3 script via html codetag?

    From what I know, it is possible to add <a href="....">
    or <a href="mailto:..."> in order to set dynamically a
    specific substring of a text to do either navigation to other page,
    or open to e-mail client. But is it possible to do much more
    important things, by just calling an AS3-function?... I am talking
    about a hyperlink to AS3 script code, instead to email client /
    browser.
    I.e. I want to download dynamic text with the names of
    Authors of papers from a database, and parse them serial i.e.:
    Authors:
    Author1Name,
    Author2Name, ...,
    AuthorKName".
    When the user press on a name, to open a vector flash pop-up
    (MovieClip) as a data-card of the specific Author. This could be
    done if there was an Flash-HTML tag like <a
    fref="loadModule(1)">
    Author1Name</a>, which would run the
    loadModule(1) function of the parent MovieClip that contains
    the dynamic text.
    I know something like this doesn't exist (
    add it to wishlist for future versions! :) ), but is there
    any other way to do it, except from creating one Object per author
    with MouseEvent listeners and place them dynamically to correct x,y
    positions?...

    It's as you describe it, with one problem: the "button"
    position and size is dynamically text-depending and not known
    before the data parsed to screen.
    Example:
    Create a textField and add inside it a dynamic text like:
    "Bill Gates created Microsoft". If this text was static I could add
    2 transparency buttons (listening to: MouseEvent.CLICK), one over
    "Bill Gates" and one over "Microsoft", where the first would make
    visible a movieclip talking about Bill Gates, and the second would
    make visible one movieclip talking about Microsoft.
    But the text can come as: "Microsoft was created by Bill
    Gates", or "There is a company named Microsoft, which was created
    by Bill Gates", or "Windows is a software created by Microsoft.
    Bill Gates was the one that created Microsoft". Thus you can't have
    apriori knowledge on where to put the buttons. In more advanced
    examples, I might not know how many buttons I should place also
    (i.e. of authors - i don't know apriori how many authors a paper
    has).
    This is same as in case of hyperlink: We don't know where a
    hyperlink can be, thus we place a tag for every hyperlink into the
    text that defines that hyperlink position and action.
    The only way to overcome this problem (just though of it) is
    to create my own tag, and before parse the text to check for that
    tag. For every tag to find the starting coordinates of it's inside
    text on the parent movieclip (x,y) and the ending coordinates - and
    providing that they have the same y-coordinate (no line change), to
    create a transparent button at the specific area over the text.
    If this is the only way to do it (thus making my own
    pseudo-html tag inside flash),
    I must know if it is possible to take (x,y) coordinates (in
    pixels) of a letter (upperleft corner) in a dynamic textbox.
    kglad, do you know if this is possible and how to do it?... (It may
    need to open new thread for this)...

  • Running PHP script via ColdFusion

    I'm running CFMX 7 on a Solaris platform with PHP 5.0.5.
    I need to determine the width and height of an uploaded image
    to ensure that the file can be reasonably used on a web page. I
    have scoured the Internet and found a numer of solutions to this.
    Most need the installation of additional software on our server and
    the creation of a custom tag. These are doable, but would require
    additional effort I don't have time for at the moment. Also, the
    software to install is a full image manipulation package that is
    definitely overkill for my needs. Kind of like threading a needle
    with a hammer.
    On the other hand I know that PHP has a command called
    "getimagesize" that would be perfect for my use. This would be much
    more simple and elegant. And I have created a small program (see
    below) that can accept a location of an image file and display the
    width and height of the image as a result. The code is:
    <?php
    list($width, $height) = getimagesize($argv[1]);
    echo "$width, $height";
    ?>
    I've tested it via the command line and it works fine.
    However, I'm having difficulty in running it via the ColdFusion
    cfexecute tag. Here is that code:
    <cfsavecontent variable="imgsize">
    <cfexecute name="#phpfilelocation#"
    arguments="#imagelocation#"></cfexecute>
    </cfsavecontent>
    I get nothing back from this. I've also tried the cfhttp tag
    with similar results. It seems to me that the argument (the
    location of the image) is not being accepted by the PHP code for
    some reason.
    I've looked for a solution to this within this forum and via
    Google, etc. to no avail. There is apparently something about PHP
    or ColdFusion that is escaping me. Any help clarifying why this is
    not working and (hopefully) a workaround would be very much
    appreciated. Thank you.

    Maybe this will help:
    http://groups.google.com/group/alt.comp.lang.coldfusion/msg/af84ac7dfec0d09e?dq=&hl=en&lr= &ie=UTF-8&oe=UTF-8&rnum=8

  • Server  crashes after running  Calc Scripts

    [Sat May 19 06:27:29 2012]Local/RFPPrevWork/RFP/admin@Native Directory/13032/Info(1012579)
    Total Calc Elapsed Time for [2010.csc] : [9645.87] seconds
    [Sat May 19 06:27:29 2012]Local/RFPPrevWork/RFP/admin@Native Directory/13032/Info(1013274)
    Calculation executed
    [Sat May 19 06:27:32 2012]Local/RFPPrevWork///13068/Info(1013214)
    Clear Active on User [admin@Native Directory] Instance [1]
    [Sat May 19 06:29:17 2012]Local/RFPPrevWork///12896/Info(1013205)
    Received Command [Get Database Info]
    [Sat May 19 06:29:17 2012]Local/RFPPrevWork///12896/Info(1013205)
    Received Command [Get Database State]
    [Sat May 19 06:29:17 2012]Local/RFPPrevWork///12896/Info(1013205)
    Received Command [Get Database Volumes]
    [Sat May 19 06:29:17 2012]Local/RFPPrevWork///12896/Info(1013205)
    Received Command [Get Database State]
    [Sat May 19 06:29:17 2012]Local/RFPPrevWork///12896/Info(1013205)
    Received Command [Get Database Volumes]
    [Sat May 19 06:29:17 2012]Local/RFPPrevWork///12896/Info(1013205)
    Received Command [Unload Database]
    [Sat May 19 06:29:17 2012]Local/RFPPrevWork///12896/Info(1019018)
    Writing Parameters For Database [RFP]
    [Sat May 19 06:29:17 2012]Local/RFPPrevWork///12896/Info(1019018)
    Writing Parameters For Database [RFP]
    [Sat May 19 06:29:17 2012]Local/RFPPrevWork///12896/Info(1019020)
    Writing Free Space Information For Database [RFP]
    [Sat May 19 06:29:17 2012]Local/RFPPrevWork///12896/Info(1013207)
    RECEIVED SHUTDOWN COMMAND - SERVER TERMINATING
    any ideas

    i guess ur hard disk is running out of space since ur page file is increasing

Maybe you are looking for

  • Error copying from one external drive to another

    Hi - I am trying to transfer three large iMovie files from an external Firewire hard drive to an external USB 2.0 hard drive. I have the USB drive connected to my 1GHz TiBook through a PCMCIA card. I have the Firewire drive connected at the TiBook's

  • Help on OLAP DML function – "joinchars"

    Hi, We have built a cube called 'CubeTest' which has a measure called 'TestMeasure' of decimal data type, using Oracle AWM v10.2.0.3.0A. Now, I am using "Oracle OLAP Calculations v1.2.5", as available on OTN homepage, to define my own calculated meas

  • Help with "distint count" in query

    Hi I have a query that returns the following error: ORA 00936: Missing Expression and also after running it again I get ORA 00900: Invalid SQL statement. The query is as follows: SELECT         DISTINCT student_id,         COUNT(student_id),        

  • Source of mail

    I have two email accounts at comcast. one my husband uses the other my son. I regularly check it to clean up all the junk mail they receive. I came across one letter that says it in replying to my son's letter. I want to know if he did indeed send a

  • Compound paths lose colour

    A strange thing happened just now that I don't recall having seen before. I have a number of simple objects, all the same fill colour, no stroke and none of them overlapping. When I make them into a compound path they sometimes lose all their colour.