Removing Prefix of members/alias in report Scripts

I need to remove the pre fixes of all members/alias of a couple of dimensions through report script.( no need to modify the outline)
For example Costcenters start with C_ , which needs to be removed when the report is created( I know everybody is going to ask why it's not used already in the alias, but there was a requirement for the prefix)
I am using {RENAME } for specific members, but there are quite a few members with the prefix and I want to know if there's a way to remove them through report scripts
Thanks.

Another alternative frequently used, especially with report scripts is the use of alternate alias tables. There is the option to add up to, last time I checked, up to 8 alias tables. Most functionality is based on the "Default" alias table, but Report Scripts allows you select an alternate alias table by using "<OUTALTSELECT" by dimension. If you set the members aliases in the alternate table "Real_Cost_Center", then you could do...
<OUTALTSELECT ("Real_Cost_Center")
As a bonus, the usage of this alternate alias table means you can actually load data using the member name or any one of the aliases across all alias tables. The main "downfall" is the uniqueness requirement still applies to the alternate alias tables. Alternate alias tables are also frequently used when using any of the BI suite, where a given view/report/etc would benefit from short names.
Just another alternative...
Good Luck!
Kevin

Similar Messages

  • Pull Alternate Alias In a Report Script

    I am interested in pulling data from a database using members on the outline from an Alternate Alias table using a report script. I have not been able to find any report script commands that will let me do this. Is this possible to do?JBF

    Take a look at the <OUTALTSELECT command. It allows you to specify an alternate alias table in a report script.Regards,Jade----------------------------------Jade ColeSenior Business Intelligence ConsultantClarity [email protected]

  • Report script with attribute members

    <BR>In a report script, is there a way to output the attribute members associated with a base mbr. For example, the base member I'm interested in is item codes which is in a sparse dimension with 500k members. Each code has been tagged with 5 attribute members of buyer, warehouse, vendor, product line, and date of last receipt. Desired output is:<BR><BR>Item Code, Buyer, warehouse, vendor, product, and date of last receipt. <BR><BR>Right now I don't care about data at any intersections, rather I just want to output the various attributes associated with each item code. I tried doing dimbottom on items, buyers, warehouse, vendor, etc, but as expected the report would not run. <BR><BR>Thanks in advance for any suggestions.

    <p>Maybe you can use the Outline Extractor, you can download itsomewhere on this website...</p>

  • Report script command to get all Level 0 members of a given member

    Hi,
    Is there any Report script command to get all Level 0 members of a given member (Parent)? (very similar to @RELATIVE (mbrName, 0) in Calc Scripts).
    <DIMBOTTOM gives all the level 0 members in the dimension.
    There is a command called
    <LEAVES mbrName
    This works only for ASO.
    Is there anything similar for BSO?
    Appreciate your thoughts.
    Thanks,
    Ethan.
    Edited by: user11397030 on Dec 15, 2009 11:50 AM
    Edited by: user11397030 on Dec 15, 2009 11:51 AM

    from my blog on report scripts at
    http://glennschwartzbergs-essbase-blog.blogspot.com/2008_07_01_archive.html
    Third, there is a command to stay away from, its DimBottom. [edited] Like @CURRMBR in calc scripts, DimBottom is one of those commands that is very slow. If you use Query designer to create a report, it uses a better way. It uses the link command. In sample.basic to get all level 0 products it uses
    <Link ((<LEV("Product", 0)) AND ( <DESC("Product")))

  • Essbase report script match pattern on alias

    report scriptHi,
    I need some help on essbase report script.  I have been racking my brain trying to figure out how to use the essbase report script command "<MATCH" so that I can match for a pattern on the alias name as opposed to the member name. I have searched the Internet with no luck. Maybe someone in this community knows how to do this.  If you can reply with a specific example that would help me out as I am very visual.
    Thanks in advance.

    You can use <REPALIAS, e.g., for Sample.Basic:
    <REPALIAS "Product"
    <ROW ("Product")
    <MATCH("Product", "Diet*"
    Diet Cola
    (24,761)
    Diet Root Beer   25,185,158,741
    Diet Cream
    23,703,677,612
    Diet Cola
    (24,761)
    Diet Root Beer   25,185,158,741
    Diet Cream
    23,703,677,612
      Diet Drinks
    48,888,811,592
    Using <OUTALT on its own (confusingly, at least as I read the documentation) continues selecting by alias, but displays member name:
    <OUTALT
    <ROW ("Product")
    <MATCH("Product", "Diet*"
    100-20   
    (24,761)
    200-20  
    25,185,158,741
    300-30  
    23,703,677,612
    100-20   
    (24,761)
    200-20  
    25,185,158,741
    300-30  
    23,703,677,612
      Diet  
    48,888,811,592
    Without either, the MATCH only looks at member names:
    <ROW ("Product")
    <MATCH("Product", "Diet*"
    Diet    
    48,888,811,592

  • How to output the member UDA as a column in Report Script?

    I tagged my account dimension members according to its classification instead of using an attribute dimension.
    I wanted to use the assigned UDA for data loading purpose (select/reject records in rule file.
    Please let me know the syntax to show UDA as a column in the report script.
    Thanks.

    It sounds like what you need is an alias table for loading purposes, rather than a UDA tied to the members.
    Like Glenn said, you can't output the UDA in a report, but you can either output an alias or use the alias in the destination database. In this case, I'd use a new alias table rather than the default alias, something specific for the purpose.

  • Report script taking too long

    My report script execution time is too long - Previously it used to complete with in 5 mins when costcenter was in page def not being in rows, but the business requirements changed and we need data corresponding to level zero cost cnetr in row def,
    I have tried optimizing databuffer size (increased to 100k) and sorbuffer size but the script takes too long to complete can some bosy review the report def and see am i missing anything its on prod enviroment it is a beffy env with quad processors and 8 gb ram
    /ESS_LOCALE English_UnitedStates.Latin1@Binary
    // Report Script Name - FY09 Extract
    <ACCON
    <SUPSHARE
    {TABDELIMIT}
    {DECIMAL 9}
    <QUOTEMBRNAMES
    {SUPEMPTYROWS}
    {SUPMISSINGROWS}
    {SUPZEROROWS}
    {MISSINGTEXT  "0"}
    {ROWREPEAT}
    {NOINDENTGEN}
    <SPARSE
    <PAGE("Years","Project","Currency")
    <COLUMN("Time Periods")
    <ROW("Accounts","Entity","SubAccount","Cost Center")
    // Page Members
    // Selection rules and output options for dimension: Years
    {OUTMBRNAMES}
    "FY-2009"
    // Selection rules and output options for dimension: Currencies
    {OUTMBRNAMES}
    "Local"
    // Selection rules and output options for dimension: Project
    {OUTMBRNAMES}
    "Project"
    // Column Members
    // Selection rules and output options for dimension: Time Periods
    {OUTMBRNAMES}
    "Feb"
    "Mar"
    "Apr"
    "May"
    "Jun"
    "Jul"
    "Aug"
    "Sep"
    "Oct"
    "Nov"
    "Dec"
    "Jan"
    // Row Members
    // Selection rules and output options for dimension: Account
    "LEV0,Accounts"
    // Selection rules and output options for dimension: Entities
    "LEV0,Entity"
    // Selection rules and output options for dimension: SubAccount
    "LEV0,SubAccount"
    // Selection rules and output options for dimension: CostCenter
    "LEV0,Cost Center"
    // End of Report

    There's probably no silver bullet for this beast. Going to level 0 on 4 dimensions is going to be tough in the reporting engine. You could probably get some improvement by using the link approach rather than the Lev0 approach.
    The only other way I could think of is taking the report and breaking it into different sections for one of the smaller row dimensions, but it doesn't look like the ones you listed fit that category (they all appear to have more than a handful of members).
    One note: I don't think you need to list the {OUTMBRNAMES} for each dimension up top, but that's cosmetic and you might want it that way (to change one without affecting the others later).
    The reason the report will run for a long time is that it has to build a row index up front so they can be sorted, even if you don't request a sort. You could try SORTNONE, but I don't think it removes the step entirely from the sequence so the report engine burns a lot of timing creating the row indexes anyway.

  • Report Script is Failing while Zooming in 55K+ member dimension

    Hi,
    we have a ASO cube and there is one dimension called PART NUMBER...which is having nearly 56,000 members...we wrote a report script to zoom in all the members under PART NUMBER along with other dimensions..
    the problem we are facing is when we execute the script by removing the line
    &lt;DIMBOTTOM "Part Number"; the report script is executing fine and the final result includes 5200 rows, but when we try to execute the report script with &lt;DIMBOTTOM "Part Number" , its getting failed.
    any idea why its happening? is any limit on the number of records which the report script can pull? or is it related to any memory issues? do we need to change any configuration file settings???
    Any help is much appreciated...
    Thanks,
    Sunil

    Thanks Doug for your valuable input.
    i tried with the options 2 and 3, but no joy :-(
    i am not very good in option 1, so can you pls help me to show how to do that? below is my script.
    //ESS_LOCALE English_UnitedStates.MS1252@Binary
    {SUPPAGEHEADING}
    {SUPCOLHEADING}
    {SUPZEROROWS}
    {SUPEMPTYROWS}
    { NOINDENTGEN }
    { SUPMISSINGROWS }
    {SUPFEED}
    {SUPHEADING}
    {SUPBRACKETS}
    {TABDELIMIT}
    {ROWREPEAT}
    {MISSINGTEXT "0"}
    {DECIMAL 2}
    <SUPSHARE
    <Col (Period,Year,Entity)
    <iDESCENDANTS "YTD"
    <iDESCENDANTS "2007"
    <iDESCENDANTS "L-200112"
    <ROW (Account,"Revenue Segment",Platform,Customer,"Part Number")
    <iDESCENDANTS "Total Revenue" ;
    <iDESCENDANTS "Total Cos";
    <iDESCENDANTS "Qty";
    <DIMBOTTOM "Revenue Segment";
    <DIMBOTTOM "Platform";
    <DIMBOTTOM "Customer";
    <DIMBOTTOM "Part Number";
    //Run
    !

  • Remove prefix at the end?

    I'm using apple scripts with Automator to remove prefix from files. How can I remove prefix at the end? For example, the file name is test01.mov. I want it to be test.mov
    I have found this script but this script works in front. I'm not I programmer and I can't make any sense of the script.. Can any one help me out?! Thanks!
    repeat with thisFile in input
                        tell application "Finder"
                                  set fileName to name of (thisFile as alias)
                                  set fileName to (do shell script "echo " & quoted form of fileName & " | sed 's/^[0-9]*//'")
                                  set name of thisFile to fileName
                        end tell
              end repeat

    I can't help with Automator or scripts, but clarifying your question -
    A 'prefix at the end' is called a suffix. By definition, a prefix can only be at the beginning of something.
    And, I think you want to remove something from the end of the file's name (the filename) rather than from the file itself.

  • 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 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!

  • Issue with the supshare Report Script Command

    Hi All,
    I have created a report script to extract the Level0 data for the members of the accounts dimension and It does work fine and the performance is also good. However I have a challenge here. The shared members are repeating and therefore I used “<supshare” command in order to avoid the repetition. It does work, however there is an issue here.
    For eg, I am trying to retrieve the data as below and they are level0 members. The NetExpense is a “Level0” member and also a “shared member”, However the original “Net Expense” comes under Level3 and since I have used <Supshare and asked to retrieve only Lev0 accounts it is therefore ignoring the “Net Expenses” for all the Dept and product intersections. Hope I am clear and not confused? Is there anything i could change or add to retrieve the correct data.
    Would anyone be able to help me on this issue.
    <supshare “Lev0 Accounts”
    Data Retrieval Ex : DeptA  NetExpense No Product  1200
    Thanks

    Thanks Glen. I tried the below link statement. This is an example. My accounts dimension has 8 childern (A to H) out of which 4 are level 0 members ("B"to "E") and the remaining have so many members underneath. The member"H" is where my confusion starts, it has 4 children (Ex 1,2,3,4) and all are shared members. Here i need not worry about children 2 and 3 since they have no data. Children 4 is a level 0 and a shared member, however the Children 4 main location is also located at Level 0. Therefore when i use supshare this appears only once. one problem is solved.
    Now coming to Children 1, this is a Level 0 for parent "H", however this is also a child of "A" and this by itself has levels underneath. So this Sup share is not allowing me to retrieve the data Child 1 though it is level 0 and since it is shared member.
    This case how do i modify the report in such a way i get all level 0 data of my accounts and suppress shared members. Hope i have not condused...
    <ROW (Accounts)
    {ROWREPEAT}
    <LINK(<DESCENDANT ("A", "Lev0,Accounts"))
    "B", "C", "D", "E"
    <LINK(<DESCENDANT ("F", "Lev0,Accounts"))
    <LINK(<DESCENDANT ("G", "Lev0,Accounts"))
    <LINK(<DESCENDANT ("H", "Lev0,Accounts"))

  • Use of Essbase substitution variables in filename of a MaxL report script

    Hey guys.
    Is there a way that I can embed the value of one or more Essbase substitution variables in the filename of a report script in a MaxL command?
    I'm running a report script that uses sub. vars for entities and accounts and based on which of those members are set in the variables I want the filenames to include those member names. I'm looking for a way to include the &varName in the filename using the export database command.
    THANKS!

    Not really.
    If you want to do a lot of string mangling in a script outside of the report script, you can use DISPLAY VARIABLE:
    MAXL> display variable CurMo;
    application         database            variable            value
    +-------------------+-------------------+-------------------+-------------------
                                             CurMo               MayRegards,
    Robb Salzmann

Maybe you are looking for