Report Script parameter

hi all,
I am using a report script to generate a text file with budget data. This works fine in AAS console but I am automating this process by usning an ESSCMD and batch script.
tha batch script will call the ESSCMD script which in turn executes the follwoing command
RUNREPT 2 "RepScripName" "c:\Otputfile.txt"
Now here I am hard coding the Output file name and location.But my requirement is that when I run the script it should prompt for file name and location.
Any Idea on this
Thanks

Hi,
Just to expand on the MAXL option, you can create a batch script which will accept input parameters such as :-
set /p RepName=Enter Report Name
set /p OutputName=Enter output Directory
Then you can pass the stored variables into the Maxl script as :-
essmsh maxlscript.mxl %RepName% %OutputName%
In your maxl script you can access the passed in variables e.g
export database 'appname'.'dbname' using server report_file $1 to data_file $2;
The number after the $ relates to what position the variable was passed into the script.
Hope this helps.
John

Similar Messages

  • Report Script : Parameter for file name?

    hi all,
    I am using a report script to generate a text file with budget data. This works fine in AAS console but I am automating this process by usning an ESSCMD and batch script.
    tha batch script will call the ESSCMD script which in turn executes the follwoing command
    RUNREPT 2 "RepScripName" "c:\Otputfile.txt"
    Now here I am hard coding the Output file name and location.But my requirement is that when I run the script it should prompt for file name and location.
    Any Idea on this
    Thanks

    Another solution I have tried is simply writing a small VB app that has a dialog that allows you to type in a file name or even navigate a file system directory. If I understand you correctly, you just want to be able to output the file anywhere you want. This works well and you can add more features to, just depends on if it is worth the effort. Other wise you can just write MXL and supply your script with position variables. You just need to type it in and hope you type typed it in correctly. Good luck, there are several ways to accomplish this.

  • Report Script "Parent" question.

    Essbase 7.1.5 on Solaris 5.9.
    We have a business owner who will be manually maintaining his "Entities" dimension, and would like to be notified when the source cubes (7 different cubes)that he is trying to stay in sync with are updated. Since the .olg output is not plain English enough for the business owner to track changes, we have written a Perl script to check for changes in a file, in our case Old Entities against New Entities (files generated from Report Script).
    Since it is common for level 0 members to change parents (stores moving to different districts) I would like to be able to show the Parent of each member in the report script. I am trying to use the <PARENT function but have been unable to get it to work the way I want it to.
    I need to not have to put the "mbrname" hardcoded as its parameter, but I need the resulting members of
    <LINK(<idescendants("EBIT"))
    to be used as the "mbrname" parameter.
    Any help or ideas would be greatly appreciated.
    BTW, I have considered Outline Extractor but we are running on a Unix environment, and the user is monitoring only a subset of each dimension so checking and reporting ALL dimension changes could show extraneous information.
    Message was edited by:
    RobertR

    If a reference outline is available, the otlcomp.exe program can run on a client and generate a spreadsheet that lists the differences for them in plain english. Yes, it lists all changes, but each dimension has it's own tab making the comparison a little less confusing.
    You can get it from www.dougware.com in the download section. It may or may not be what you are looking for.

  • ??? Sign flip on Attribute using report script ???

    We are using an Essbase report script to extract data that we then process with HAL. Since the system we are loading into uses natural balances, we need to flip the sign on a revenue accounts (have 'Revenue' attribute in Essbase).Is there a way to do the sign flip on data based on the value of an attribute? I could do it once the data is back in HAL, but it would be easier if we could do it on the data extract.Thanks,TomB

    I'm using example 4.
    This is what I have: 
    $UpdateUserAttributesArray = 'sn','givenName','initials','displayName','info','mail','departmentNumber','department','telephoneNumber','ipPhone','title','physicalDeliveryOfficeName','employeeType'
    Function StudentNameChange {
        $Attributes=BuildUserTable $UpdateUserAttributesArray
        Set-ADuser $User.sAMAccountName -Replace @{mail="$User.mail";targetAddress="$User.mail";proxyAddressess="SMTP:$User.mail";sn="$User.sn";cn="$User.sn + $User.givename"}
    $UpdateUserAttributesArray sets the value for the import file.
    StudentNameChange should set the updated value has needed.
    The script runs but no settings are changed.
    Set-AdUser $User.sAMAccountName  -mail $User.mail -surname $User.sn
    Like that.,
    Replace is only for optional attribute.
    Function does not specifi $user so that may also be missing.
    I think you need to spend some time learning the basics of PowerShell. It looks like you are just gluing things together thazt you have found with no understranding of how any of the bits work.
    Try just setting one user at a command prompt until you see how the CmdLet and PowerShell work.  Post single simple questions as you try each parameter.
    # build a test user object
    $user New-Object PsObject@{
    SamAccoutnName='somename'
    Mail='[email protected]'
    SN='lastname'
    GivenName='John'
    proxyAddresses='...<list of addresses>'
    #start like this and add items until you understand what is working.
    Get-AdUser $user.SamAccountName |
    Set-AdUser -Surname $user.sn -GivenName $user .GivenName -Replace @{Mail='$($user.Mail'}
    #use Rename-Object to change CN.
    You need to learn the simple bits before you try to do grand things.
    ¯\_(ツ)_/¯

  • Heading in report script

    Hi,
    I have a report like that:
                        07     Jan-Jul YTD     R12 Jul
    2009     STO001     31111110     P31-111     34925.50     44631.48     257909.97
    2009     STO001     31111110     P20-111     42.78     364.20     3704.85
    2009     STO001     31111110     P53-111     5044.80     6740.31     44175.52
    2009     STO001     31111110     P115     0.00     0.00     4018.71
    However, I would like to have the header like that:
    Ano     Presidencia     Contas     Produto     07     Jan-Jul YTD     R12 Jul
    2009     STO001     31111110     P31-111     34925.50     44631.48     257909.97
    2009     STO001     31111110     P20-111     42.78     364.20     3704.85
    2009     STO001     31111110     P53-111     5044.80     6740.31     44175.52
    2009     STO001     31111110     P115     0.00     0.00     4018.71
    What can I do to obtain the report?
    See my report script below:
    //ESS_LOCALE English_UnitedStates.Latin1@Binary
    { STARTHEADING
    SUPPAGEHEADING
    ENDHEADING }
    <SETUP
    { TabDelimit }
    { decimal 2 }
    { SUPCOMMAS }
    { SUPBRACKETS }
    { NOINDENTGEN }
    <ACCON <SYM <END
    <ROW("Ano","Presidencia" ,"Plano de Contas","Produto" )
    // Column Members
    //{WIDTH 15}
    {MISSINGTEXT "0.00"}
    <COLUMN ( "Período")
    "07"
    "Jan-Jul YTD"
    "R12 Jul"
    // Page Members
    "Actual"
    {SupMissingRows}
    // Row Members
    {ROWREPEAT}
    <DESCENDANTS "Personal Perfil"
    {ROWREPEAT}
    "2009"
    {ROWREPEAT}
    <DESCENDANTS "Prêmios Emitido-"
    {ROWREPEAT}
    <DESCENDANTS "SPCT"
    <DESCENDANTS "STO Escr"
    Thanks

    Essbase reports do not put row headers on (Headers for the dimension members from the <rows command).
    The best I have been able to do in the past was to have a file with the header info I wanted and after the report was created concatinate the header file with the report file using the Dos copy command.

  • Issue with report Script. DECIMAL option not working properly

    Hi All,
    One of my report scripts has the option { decimal n } set. Now I am getting this to work only for account members which has a '%' symbol in the name. For all other accounts, data is being exported as a whole number even though the cube has decimal values. This is an ASO cube. Any thoughts?
    Thanks,
    N

    Here you go,
    //ESS_LOCALE English_UnitedStates.Latin1@Binary
    <sym
    {supall}{ROWREPEAT}{tabdelimit}{nameson}{noindentgen}{ SUPCOMMAS }{SUPMISSINGROWS}{ DECIMAL  9}
    <COLUMN (Period)
    July August September October November December January February March April May1 June
    <ROW(Year,Scenario,Version,Currency,Entity,Location,HSP_Rates,Stage,Business_Category,"BD_Responsible","Type_Of_Program","Client",Account)
    //{ OUTALTNAMES }
    &DCCurrFiscalYr
    &CurrScenario
    &CurrVersion
    "HSP_InputValue"
    "USD"
    <LINK(<LEV (Entity,0))
    <LINK(<LEV (Location,0))
    <LINK(<LEV (Stage,0))
    <LINK(<LEV (Business_Category,0))
    <LINK(<LEV (BD_Responsible,0))
    <LINK(<LEV (Type_Of_Program,0))
    <LINK(<LEV ("Client",0))
    "Net_Revenue"
    "552"
    "500"
    "501"
    "503"
    "Contribution"
    "Contribution %"
    "SD_Costs"
    "SD Margin"
    "SD Margin %"
    "Indirect Costs"
    "PBT"
    //"PBT %"
    "Total Tax"
    "PAT"
    //"PAT %"
    "Manpower Total"
    "Billable agents"
    "Total Seats"
    !

  • Report script taking too long to export data

    Hello guys,
    I have a report script to export data out of a BSO cube. The cube is 200GB in size. But the exported text file is only 10MB. It takes around 40 mins to export this file.
    I have exported data of this size in less than a minute from other DBs. But this one is taking way too long for me.
    I also have a calc script for the same export but that too is taking 20 mins which is not reasonable for a 10MB export.
    Any idea why a report script could take this long? Is it due to huge size of database? Or is there a way to optimize the report script?
    Any help would be appreciated.
    Thanks

    Thanks for the input guys.
    My DATAEXPORT is taking half the time than my report script export. So yeah it is much faster but still not reasonable(20 mins for one month data) compared to other DBs that are exported very quick.
    In my calc I am just FIXING on level 0 members for most of the dimensions against the specific period, year and scenario. I have checked the conditions for an optimal report script, I think mine is just fine.
    The outline has like 15 dimensions in it and only two of them are dense. Do you think the reason might be the huge size of DB along with too many sparse Dims?
    I appreciate your help on this.
    Thanks

  • Report using Parameter Field

    Hi,
    I have designed one report using Parameter Field which is Cost Code (string).
    When I run my report, I ask to enter cost code. When I enter cost code 30, I get report for all transaction of cost code 30 and 300.
    How could I avoid this problem.
    Thanks
    Mithani

    Try with this
    {Project_cost.EXPENSES_Code} IN {?Cost Code}
    and also
    Check the query formed after giving the input parameter. Goto Database --> Show Sql Query.

  • Report Script- Performance Issue

    Hi,
    I ran this report script and it is taking around 2 hours to complete. Is there any possiblity to better tune this script. Please advice me where else can we better tune this.
    Thanks,
    UB.

    ID 581459.1:
    Goal
    How to optimize Hyperion Essbase Report Scripts?
    Solution
    To optimize your Report follow the suggested guidelines below:
    1. Decrease the amount of Dynamic Calcs in your outline. If you have to, make it dynamic calc and store.
    2. Use the <Sparse command at the beginning of the report script.
    3. Use the <Column command for the dense dimensions instead of using the Page command. The order of the dense dimensions in the Column command should
    be the same as the order of the dense dimension in the outline. (Ex. <Column (D1, D2)).
    4. Use the <Row command for the sparse dimensions. The order of the sparse dimensions in the Row command should be in the opposite order of the sparse
    dimension in the outline. (Ex. <Row (S3, S2, S1)). This is commonly called sparse bottom up method.
    5. If the user does not want to use the <Column command for the dense dimensions, then the dense dimensions should be placed at the end of the <Row command.
    (Ex. <Row (S3, S2, S1, D1, D2)).
    6. Do not use the Page command, use the Column command instead.

  • Report Scripts - Please Can Some One Help Me

    Hello Gurus,
    Is it possible to display 2 members of the same dimension in adjacent columns using Report Scripts? if not what is the best available option?
    Consider this Sample Outline
    +Product
    +-Cofee
    +---Cafined
    +-------1100
    +-------1200
    +---Decafined
    +-------1300
    +-------1400
    +-Soda
    +---Coke
    +-------1500
    The format of the desired report is
    ======= Jan Feb Mar
    1100 Cofee 8 8 8
    1200 Cofee 8 8 8
    1300 Cofee 7 7 7
    1400 Cofee 7 7 7
    1500 Soda 6 6 6
    ================
    Please Can some one help me in this regard!
    Thanks In Advance

    If I remember correctly when I wanted to do something similar I imported the report with the level 0 members into SQL Server and then joined on a mapping table (was a parent/child table in our case) to get the other column. In our situation we already had the mapping table readily available because this is where the dimension was built from!

  • Report Script returns no data and "java.io.FileNotFoundException" error

    When attempting to write to a new file (Eg: C:\TEST.txt), Report Script returns no data and "java.io.FileNotFoundException" error occurs.
    This error occurs only in Essbase 9.3.1.3 release, however it works fine in release 9.3.1.0.
    After running the report the script, it pops up the follwing message:
    "java.io.FileNotFoundException: ..\temp\eas17109.tmp (The system cannot find the file specified): C:\TEST.txt"
    When checked the TEST.txt, it was empty.

    Sorry folks, I just found out the reason. Its because there was no data in the combination what I was extracting.
    but is this the right error message for that? It should have atleast create a blank file right?

  • Report script taking very long time to export in ASO

    Hi All,
    My report script is taking very long time to execute and finally a message appears as timed out.
    I'm working on ASO Cubes and there are 14 dimensions for which i need to export all data for all the dimensions for only one version.
    The data is very huge and the member count in each dimension is also huge, so which is making me difficult to export the data.
    Any suggestions??
    Thanks

    Here is a link that addresses several ways to optimize your report script. I utilize report scripts for Level 0 exports in an ASO environment as well, however the majority of our dimemsions are attribute dimensions.
    These are the most effective solutions we have implemented to improve our exports via report scripts:
    1. Make sure your report script is written in the order of how the Report Extractor retrieves data.
    2. Supressing Zero and Missing Data
    3. We use the LINK command within reports for some dimensions that are really big and pull at Level 0
    4. Using Symmetric reports.
    5. Breakout the exports in multiple reports.
    However, you may also consider some additional solutions outlined in this link:
    1. The MDX optimizing commands
    2. Back end system settings
    http://download.oracle.com/docs/cd/E12825_01/epm.111/esb_dbag/drpoptim.htm
    I hope this helps. Maybe posting your report script would also help users to provide feedback.
    Thanks
    Edited by: ronnie on Jul 14, 2011 9:25 AM
    Edited by: ronnie on Jul 14, 2011 9:53 AM

  • Report 9i parameter form problem, is it a bug?

    Hi all,
    I am using Dev 9i IDS, rel. 9.0.2, running in windows 2000. I've been converting my forms and reports from previous versions to 9i, and I came across an issue with the report's parameter form.
    First, I thought it could be a problem during the conversion , but to make sure I developed a new form and a new report straight in the 9i IDS suite, using Scott's DEPT table. The new form is simple having a button to call the new report which is based on the DEPT table and accepts an user's input for a dept. no.
    The same problem occurs:
    - in the form, if I set PARAMFORM=HTML then it could not open the report parameter form, hence the report could not run.
    - if I set PARAMFORM=YES, then the report parameter form is displayed, then I can enter a value for the department number. BUT, when I clicked the Submit Query button the report failed, and I received the following error:
    REP-52007: Parameter form format error.
    java.lang.IllegalStateException: Response is already committed!
         at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.EvermindHttpServletResponse.setContentType(EvermindHttpServletResponse.java:973)
         at javax.servlet.ServletResponseWrapper.setContentType(ServletResponseWrapper.java:27)
         at oracle.reports.rwclient.RWReportRunner.setContentType(RWReportRunner.java:261)
         at oracle.reports.rwclient.RWReportRunner.getMainFile(RWReportRunner.java:135)
         at oracle.reports.rwclient.CommandManager.handleCmdGetjob(CommandManager.java:1219)
         at oracle.reports.rwclient.CommandManager.handleWebCommand(CommandManager.java:369)
         at oracle.reports.rwclient.RWClient.handleWebCommand(RWClient.java:651)
         at oracle.reports.rwclient.RWClient.processRequest(RWClient.java:1053)
         at oracle.reports.rwclient.RWClient.doPost(RWClient.java:318)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:283)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
         at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:59)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:283)
         at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:523)
         at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:269)
         at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:735)
         at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java:243)
         at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].util.ThreadPoolThread.run(ThreadPoolThread.java:64)
    I have no problem integrating others reports that don't have parameter form using run_report_object. And, I've checked and tried different ways of manipulating the parameter value using to_number in the report's where clause etc., it never worked.
    I guess the only workaround is to create the parameter form in Forms builder. Is there other ways of doing it , or is it a bug of the 9i IDS suites that needs to be fixed?
    - Thanks

    Hi Frank,
    There's a note published on Metalink, note 139546.1, showing a workaround to thi problem. but
    - it is rather lengthy and confusing, may not be practical .
    - it only applies to Forms and Reports 6i.
    However, it shows that the problem comes from 2 items in the source code of the parameter form which is produced by the RUN_REPORT_OBJECT built-in:
    1. <form method=post action=""> where action contains an empty string, it needs to have a valid entry, e.g.
    <form method=post action="http://hostname:port/cgi/rwci60.exe?">
    2. <input name="hidden_run_parameters" type=hidden value=""> where hidden value is also empty. It should contains all parameter values passed to the report parameter form, e.g.
    <input name="hidden_run_parameters" type=hidden value="report%3test+destype%3Dcache+userid%Dscott.....">
    And that is what I found, but I am reluctant to try it in 9i IDS, hoping Oracle has a better solution than that.
    Tho.

  • Report Script issue

    Hi,
    Is it possible to create a Report Script that would export Period data (jan, feb, ... dec) condition being that the start period is a subvar. Eg. from &FcstMonth to Dec, where &FcstMonth is Aug.
    Regards
    Leo

    Hi Leo,
    I have a report script that is running with &FMonths set to "Aug" "Sep" "Oct" "Nov" "Dec"
    same should work on your side,
    Regards,
    Ahmet

  • Report Scripts Issue

    Hello,
    I try to write the report script but cannot find out how to avoide this space-"movement". Is it possible to adjust this with some command? In the manual all the scripts look fine, properly aligned and centered. Cant get that in console. WIDTH, NAMESCOL could not help me. TABDELIMIT supresses many other formatting properties.
    Example is below, with a row value 615, which travels from the center of each column.
    Thank you
    Ole
                                0                             0                             0                             0                             0  
                                0                             0                             0                             0                             0 
                                0                             0                             0                             0                             0 
                                0                             0                             0                             0                             0  
                                0                             0                             0                             0                             0  
                                0                             0                             0                             0                             0  
                                0                             0                             0                             0                             0 
                                0                             0                             0                             0                             0 
                                0                             0                             0                             0                             0 
                              615                           615                           615                           615                           615  
                                0                             0                             0                             0                             0 
                                0                             0                             0                             0                             0 
                                0                             0                             0                             0                             0 
                                0                             0                             0                             0                             0 
                                0                             0                             0                             0                             0 
                                0                             0                             0                             0                             0

    Hi
    it didn't really helped. Let us take a look at the sample.basic. I have the same problems:
    Script:
    //ESS_LOCALE English_UnitedStates.Latin1@Binary
    <PAGE (Product, Measures)
    <COLUMN (Scenario, Year)
    Actual
    <ICHILDREN Qtr1
    <ROW (Market)
    <IDESCENDANTS East
    Output:
                           Product Measures Actual 
                          Jan      Feb      Mar     Qtr1 
                     ======== ======== ======== ======== 
    New York              512      601      543    1,656 
    Massachusetts         519      498      515    1,532 
    Florida               336      361      373    1,070 
    Connecticut           321      309      290      920 
    New Hampshire          44       74       84      202 
      East              1,732    1,843    1,805    5,380 
    I think this script language is some tricky...cant understand well in short time. But we need this script to generate an output for a matrix printer.
    Ole
    Edited by: Ole on 14.09.2011 18:28

Maybe you are looking for

  • Calendar app stuck on another time zone.

    I left Nigeria for Kansas, U.S. that's 6 hours behind so I changed the time settings on my phone to KS time zone but the Calendar app on my 3GS doesn't seem to understand that. When I create an event for, say, 8 PM today (to be notified at that time)

  • My solution to "Sorry, a serious error has occurred that required Adobe Premiere Elements to shut.."

    After spending a week trying to solve this error on my Windows 7 32 bit PC, and finding forums frustrating as there seen to be so may causes for this problem, I wish to add a post with the solution that worked for me. Following a PRE 9/graphics drive

  • Export and import of mapping invalidates it

    Hi All, In Development environment I've built a mapping which validates well, deploys well and executes well. Now I export it (mdl) and import it on Production environment. When I try to validate it runs into an error. When I open the mapping I see t

  • Background Noise Reduction Tips

    I'm new to FCPX, having been a long time iMovie user. I'm editing an 90 minute video of a Christmas program (which includes two 30-minute plays) shot in our church last night. All cast members with speaking parts had lapel mics; but there is a lot of

  • How to  download package "javabook" package???

    Hello,I am from China. I am very new to java.I need to know where and how I can download the package "javabook"? Please help me!!! Thank you very much!! [email protected] Thanks again.