How to format quotes in a rule file
Hello,
I have been looking in the dbag but can't seem to find any help. When I pull my data using SQL, my member name is "I" ON, but in my rule file is delimits because of the quote to read ION. How do I get "I" ON in my rule file?
As a matter of convenience, I prefer a slightly different approach than to use the load rule to convert the "normal char" back into a "special char", in your case, I would set up a "Loader" alias table entry with the ["I" On] member having an alias of [~I~ On] in that table. The users won't use it, but it will load in fine and if you ever wanted to validate the file it becomes a little easier to spot by just making the loader alias table active.
This isn't always possible, but in addition to saving troubleshooting time it can also help overcome the conversion limitations of a load rule (if you have a lot of conversions, this becomes the defacto solution, so I tend to use it as a systemic answer to load rule conversions).
Similar Messages
-
How to build shared members using Rules file
hi all,
we have a source file like below,in that Bold members are shared member. we doknow how to modify the source file for building shared members using Rules file.
Conf Total,~,Config A,*Lightbolt 365 A*
Conf Total,~,Config A,*Lightbolt 540 A*
Conf Total,~,Config A,*Lightbolt 730 A*
Conf Total,~,Config A,*Thunderball 365 A*
Conf Total,~,Config A,*Thunderball 270 A*
Conf Total,~,Config A,*Roadranger 123 A*
Can anyone give suggestion to resolve this issue.
Thanks in Advancehi John,
Here i'm building the dimension through generation build method.
setting the properties as
Field, Dimension, Field Type, Field Number
Field1,Product,Generation,2
Field2,Product,property,2
Field3,Product,Generation,3
Field4,Product,Generation,4
After mapping it shows dimensions are correctly mapped.
When i load the source file and the rule file, it shows error partially loaded data,.And it doesn't shows the shared member property. That is what asked How to modify the source file for building shared members using Rules file.
Thanks,
Edited by: user@99 on 25-May-2010 15:37 -
How to enter TEXT data using rules files
Hi,
How can i enter text data using rules files?
Thanks,
AIf you are talking about planning members with a text data type then it is not possible to load the actual text string using a load rule,essbase just stores a numeric value and the text string relating to that numeric value is stored in the planning applications relational tables.
If you want to load text directly then you can load data through the planning layer, more information available at - http://download.oracle.com/docs/cd/E17236_01/epm.1112/hp_admin/ch05s02s01.html
Cheers
John
http://john-goodwin.blogspot.com/ -
How to format date with in the file
Hi,
I have the below data in a file,
101 02100002111406893401207310900A094101xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
5200xxxxxxxxxx D18000_1 CCDXXXXXXX JUL 31201207 1140689340000001
622113010547999999999003 000333333334RE 00030137 onee SYSTEM 0140689340000001
62200000 0000999999999001 0000011111CR460 00030135 twoo system 0140689340000002
82000000040015507087000000000000000003571110D18000_1 140689340000001
Can some one tell me how to read the date which is there in line 1 which is starting with indicator 1 at position 24 to 29
in this example it is 120731
which is in YYMMDD format
I want to replace from 70 to 75 with above date + 2 as 120802 in 2nd line which starts with indicator 5
My output should look like below in a file again
101 02100002111406893401207310900A094101xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
5200xxxxxxxxxx D18000_1 CCDXXXXXXX JUL 31120802 1140689340000001
622113010547999999999003 000333333334RE 00030137 onee SYSTEM 0140689340000001
62200000 0000999999999001 0000011111CR460 00030135 twoo system 0140689340000002
82000000040015507087000000000000000003571110D18000_1 140689340000001
Can some one please tell me how to do this?
Appreciate your response.The following will help you to extract the date and perform an arithmetic function on a date:
olddate=$(head -1 myfile | cut -c 24-29)
newdate=$(date -d "20${olddate} + 2 days" "+%y%m%d")You may have to implement some logic if the year is before this century, e.g 1999. For the rest I suggest you look into awk or sed to perform a string replacement based on character position.
Edited by: Dude on Aug 7, 2012 12:57 PM -
Assigning property through rule files
Hi All,
a) Could anyone please explain me how can we assign properties of members through rule files while building the dimension. Suppose we want to assign the property store data or dynamic calc to any member then how we will do it through rule files.
b) What is the maxl command to refresh the database?
ThanksJohn,
Thanx ur blog was very helpful. I am facing a problem while loading a dimension which has attributes e.g. Product is my dimension which has attributes like Caffeinated- boolean, ounces- numeric, pkg type- text and Intro date- date.
I get errors like-
1)Intro Date_04-01-1996: The attribute member name does not match the setting for the type of attribute. Date attribute members should be specified in xx-xx-yyyy format................... and.............
2) Ounces_12: The attribute member name does not match the setting for the type of attribute. Date attribute members should be specified in xx-xx-yyyy format.
Im new to Hyperion Essbase...any help wld be highly appreciated. -
Deleting a dminesion through rules file.
Hi ,
We have a requirement to delete dimensions , before bulding metadata ( for a BSo cube) , so can some one assist me how to delete the dimensiont hroguh rule file.
Thanks in advacneYou can't delete a dimension through a rules file. Do you mean you want to delete all members before rebuilding the same dimension or actually remove the dimension altogether?
The only way to remove a dimension is to have a 'template' or 'stub' outline without the dimension and copy it over your real outline (probably after clearing all data). If what you really want is to rebuild the dimension containing only the members in your source, then the 'Remove Unspecified' dimension build setting can be used. -
Hi Guys
I ve been trying to modify a rule file by adding an extra column, should I be using create using text ? IF so it is not taking the values of the particular dimension member provided in the data file ?
Is there an alternative?
ThanksHi,
Can you tell me what you are trying to do.. that is why do you have to add 20 odd text fields in the rule file. If you are loading data from a file which is not loadable format, then use the rule file to provide the information so that your data will get loaded. May be you might have to ignore few columns in your data file and provide the dimensional information in the header definition or add few text columns representing dimension members in the rule file.
If you can provide some more info on what you are trying to achieve, may be i can help you a bit more on this...
Thanks,
Sourabh -
How can I edit the rules file?
How can I develop my program which can access rules file?I know that Hyperion didn't provide APIs to set properties of rules files.
There is not way to edit the contents of a rules file (short of trying to reverse-engineer the file format for a load rule and write the file out yourself).What is it you are trying to do? While it would be nice to be able to use an API to create a rules file, most of the the things you use a load rule for do not require the ability to change them programatically.Regards,Jade----------------------------------Jade ColeSenior Business Intelligence ConsultantClarity [email protected]
-
How to format a excel file use java.
hi,
everyone, i meet a problem.i want to write a excel file use java.i can use .csv input the date to excel.but i want to know how to format it.
thanks
Jovehi,
everyone, i meet a problem.i want to write a excel
el file use java.i can use .csv input the date to
excel.but i want to know how to format it.
thanks
JoveIf I understand your question correctly you need to know the format of a .csv file for use in an Excel spreadsheet. A .csv file is a comma-delimited file so all that you need to do is write your data elements to the file with commas in between them. Having done something similar in the past, let me warn you that when Excel is reading your file, it uses some characters other than commas as field delimiters. for example, / : and ; are treated as commas. To defeat this, you will need to surround fields containing those characters in double quotes.
Hope that helps
Mark -
How to tune data loading time in BSO using 14 rules files ?
Hello there,
I'm using Hyperion-Essbase-Admin-Services v11.1.1.2 and the BSO Option.
In a nightly process using MAXL i load new data into one Essbase-cube.
In this nightly update process 14 account-members are updated by running 14 rules files one after another.
These rules files connect 14 times by sql-connection to the same oracle database and the same table.
I use this procedure because i cannot load 2 or more data fields using one rules file.
It takes a long time to load up 14 accounts one after other.
Now my Question: How can I minimise this data loading time ?
This is what I found on Oracle Homepage:
What's New
Oracle Essbase V.11.1.1 Release Highlights
Parallel SQL Data Loads- Supports up to 8 rules files via temporary load buffers.
In an Older Thread John said:
As it is version 11 why not use parallel sql loading, you can specify up to 8 load rules to load data in parallel.
Example:
import database AsoSamp.Sample data
connect as TBC identified by 'password'
using multiple rules_file 'rule1','rule2'
to load_buffer_block starting with buffer_id 100
on error write to "error.txt";
But this is for ASO Option only.
Can I use it in my MAXL also for BSO ?? Is there a sample ?
What else is possible to tune up nightly update time ??
Thanks in advance for every tip,
ZeljkoThanks a lot for your support. I’m just a little confused.
I will use an example to illustrate my problem a bit more clearly.
This is the basic table, in my case a view, which is queried by all 14 rules files:
column1 --- column2 --- column3 --- column4 --- ... ---column n
dim 1 --- dim 2 --- dim 3 --- data1 --- data2 --- data3 --- ... --- data 14
Region -- ID --- Product --- sales --- cogs ---- discounts --- ... --- amount
West --- D1 --- Coffee --- 11001 --- 1,322 --- 10789 --- ... --- 548
West --- D2 --- Tea10 --- 12011 --- 1,325 --- 10548 --- ... --- 589
West --- S1 --- Tea10 --- 14115 --- 1,699 --- 10145 --- ... --- 852
West --- C3 --- Tea10 --- 21053 --- 1,588 --- 10998 --- ... --- 981
East ---- S2 --- Coffee --- 15563 --- 1,458 --- 10991 --- ... --- 876
East ---- D1 --- Tea10 --- 15894 --- 1,664 --- 11615 --- ... --- 156
East ---- D3 --- Coffee --- 19689 --- 1,989 --- 15615 --- ... --- 986
East ---- C1 --- Coffee --- 18897 --- 1,988 --- 11898 --- ... --- 256
East ---- C3 --- Tea10 --- 11699 --- 1,328 --- 12156 --- ... --- 9896
Following 3 out of 14 (load-) rules files to load the data columns into the cube:
Rules File1:
dim 1 --- dim 2 --- dim 3 --- sales --- ignore --- ignore --- ... --- ignore
Rules File2:
dim 1 --- dim 2 --- dim 3 --- ignore --- cogs --- ignore --- ... --- ignore
Rules File14:
dim 1 --- dim 2 --- dim 3 --- ignore --- ignore --- ignore --- ... --- amount
Is the upper table design what GlennS mentioned as a "Data" column concept which only allows a single numeric data value ?
In this case I cant tag two or more columns as “Data fields”. I just can tag one column as “Data field”. Other data fields I have to tag as “ignore fields during data load”. Otherwise, when I validate the rules file, an Error occurs “only one field can contain the Data Field attribute”.
Or may I skip this error massage and just try to tag all 14 fields as “Data fields” and “load data” ?
Please advise.
Am I right that the other way is to reconstruct the table/view (and the rules files) like follows to load all of the data in one pass:
dim 0 --- dim 1 --- dim 2 --- dim 3 --- data
Account --- Region -- ID --- Product --- data
sales --- West --- D1 --- Coffee --- 11001
sales --- West --- D2 --- Tea10 --- 12011
sales --- West --- S1 --- Tea10 --- 14115
sales --- West --- C3 --- Tea10 --- 21053
sales --- East ---- S2 --- Coffee --- 15563
sales --- East ---- D1 --- Tea10 --- 15894
sales --- East ---- D3 --- Coffee --- 19689
sales --- East ---- C1 --- Coffee --- 18897
sales --- East ---- C3 --- Tea10 --- 11699
cogs --- West --- D1 --- Coffee --- 1,322
cogs --- West --- D2 --- Tea10 --- 1,325
cogs --- West --- S1 --- Tea10 --- 1,699
cogs --- West --- C3 --- Tea10 --- 1,588
cogs --- East ---- S2 --- Coffee --- 1,458
cogs --- East ---- D1 --- Tea10 --- 1,664
cogs --- East ---- D3 --- Coffee --- 1,989
cogs --- East ---- C1 --- Coffee --- 1,988
cogs --- East ---- C3 --- Tea10 --- 1,328
discounts --- West --- D1 --- Coffee --- 10789
discounts --- West --- D2 --- Tea10 --- 10548
discounts --- West --- S1 --- Tea10 --- 10145
discounts --- West --- C3 --- Tea10 --- 10998
discounts --- East ---- S2 --- Coffee --- 10991
discounts --- East ---- D1 --- Tea10 --- 11615
discounts --- East ---- D3 --- Coffee --- 15615
discounts --- East ---- C1 --- Coffee --- 11898
discounts --- East ---- C3 --- Tea10 --- 12156
amount --- West --- D1 --- Coffee --- 548
amount --- West --- D2 --- Tea10 --- 589
amount --- West --- S1 --- Tea10 --- 852
amount --- West --- C3 --- Tea10 --- 981
amount --- East ---- S2 --- Coffee --- 876
amount --- East ---- D1 --- Tea10 --- 156
amount --- East ---- D3 --- Coffee --- 986
amount --- East ---- C1 --- Coffee --- 256
amount --- East ---- C3 --- Tea10 --- 9896
And the third way is to adjust the essbase.cfg parameters DLTHREADSPREPARE and DLTHREADSWRITE (and DLSINGLETHREADPERSTAGE)
I just want to be sure that I understand your suggestions.
Many thanks for awesome help,
Zeljko -
How to get an account with an IsICP -"R" attribute calculated in the HFM Rule file
Till recently everything was going fine with the calculations in our HFM setup ( Version 4.1)
We have say around 8 Expense accounts which roll up into a Parent account say ALL446 which finally rolls up into Operating Expenses.
Operating Expenses
|__ parent account
|_INVALO
|_ALL446
|__222446
|__242446
And we have a calculation in the rule file as below
HS.EXP "A#BE FIXED COST = A#Operating Expenses +A#SGA - A#BE VC OP F10"
This was calculating correctly till we did the below change
Added IsICP attribute to couple of accounts say 222446 and 242446 ( in the above example) in the metadata which finally rolls up into Operating Expense.
Note: we did not add any Plug account attribute to the accounts
Now the problem what we have in hand is -> Fixed Cost is not calculating correctly.- It happens that the two accounts for which we added the IsICP are not showing up in the calculation and the data in those two accounts are not adding up in Fixed Cost.
POV in GRID/Excel -> actual,2013,periodic,<Entity Currency>, ICP Top, AllCustom1, AllCustom2, AllCustom3, None( for custom4)
But when we retrieve Operating Expenses in Excel - it is showing the correct amount, even in the grid - but looks like when the rule tries to calculate Fixed Expenses using the above rule - these accounts are not adding up in the Operating expenses.
I tried the formula ( to check what number is coming into Fixed cost ) - the result is zero - But in the grid/excel I see amount for acct2. Same POV as above
HS.EXP "A#BE FIXED COST = A#222446"
and if I add & Tops to the account like below ( getting some weird number instead of what is there in acct2)
HS.EXP "A#BE FIXED COST = A#222446" & Tops
Questions:
1) Where exactly I am going wrong ?
2) Is it MANDATORY to have a Plugaccount attribute when we have IsICP turned to "R" ?
3) What will happen if we do not have a Plugaccount for the IsICP account ?
4) How to correct the formula to make sure I get the number in the acct2 into Fixed Cost??
5) Do we need to have the IsICP turned on to the immediate parent of the account having IsICP and the Top parents of the account too??
6) Is it possible to get the exact number what we have in 222446 into BE Fixed Cost account via Rule?- why I am not getting it
Notes:
BE Fixed Cost-> account type -"Expense", IsCalculated - yes, IsConsolidated - yes, IsICP- N, Custom1TopMember - AllFunctions, Custom3TopMember- AllCustom3, enabled allcustom1,2,3,4aggregations
Operating Expenses->"Expense", IsCalculated - No, IsConsolidated - yes, IsICP- N, Custom1TopMember - AllFunctions, Custom3TopMember- AllCustom3, enabled allcustom1,2,3,4aggregations
INVALO ->"Expense", IsCalculated - No, IsConsolidated - yes, IsICP- N, Custom1TopMember -none, Custom3TopMember- none,
enabled allcustom1,2,3,4aggregations
Problematic account 222446 -> "Expense", IsCalculated - No, IsConsolidated - yes, IsICP- R, Custom1TopMember - Operations, Custom3TopMember- AllCustom3, enabled allcustom1,2,3,4aggregations
The Entity on which I am trying to get the data( mentioning wherever I have attributes for this entity)
DefCurrency - DEM, Allowadjs- enabled, IsICP - enabled, Userdefined 2 - financial, - SecurityasPartner attribute - is not selected through out the applicaiton.
Variable
Tops = ".I#[ICP Top].C1#AllCustom1.C2#AllCustom2.C3#AllCustom3.C4#[None]"
tried attaching the attachments ( but service is unavailable)
Waiting for all of your valuable suggestions..1) why was I not getting the formula right when I use & Tops
I'm assuming that BE Fixed Cost has N for IsICP, in that case you can not write to invalid intersections as it would attempt to use the same ICP information
2) Is it MANDATORY to have a Plugaccount attribute when we have IsICP turned to "R" ?
No
3) What will happen if we do not have a Plugaccount for the IsICP account ?
It will not run eliminations
4) Do we need to have the IsICP turned on to the immediate parent of the account having IsICP and the Top parents of the account too??
If you want it to rollup, yes you would need that. We have all Parent accounts as isICP set to Y and top member to ICP Entities so that they roll up
5) which will have priority the rule or the Grid where we have the calculated member like the BE Fixed Cost - because in the grid I had icptop, allcustom1,2 3 and when had & Tops to the account - I got some weird numbers...
I'm not following the question here, grids are just really a display mechanism, rules will handle all of the calculations. -
How can I convert the ITHMB photo files to PC readable format like JPEG?
How can I convert the ITHMB photo files on my new Iphone 4s to a PC readable format like JPEG
Look at the link and follow instructions to convert the file taken from a different thread in this forum:
https://discussions.apple.com/thread/2640386?start=0&tstart=0 -
How can I move my elements 9 files in windows format to elements 11 in Mac format?
How can I move my windows 9 files in windows format to elements 11 in Mac format?
I guess this is what I want to do. I have jillions of photos that were transferred in a Windows version of photoshop (many different versions) plus some that were transferred from my iPhone and also in Nikon Transfer (before I started using Photoshop). Then I got the brilliant idea that I wanted to start using Mac for all of my photo projects and I'm dead in the water right now because I can't figure out how to move all of these Windows based filed to the new Mac - especial since the I have a current mac version of Photoshop and the Windows version that I have is older. I totally do not understand what a tly file is.
-
How to load a flat file with utf8 format in odi as source file?
Hi All,
Anybody knows how we can load a flat file with utf8 format in odi as source file.Please everybody knows to guide me.
Regards,
SaharCould you explain which problem are you facing?
Francesco -
How to set the field size in rule file.
i have to map total 30 fields in a rule file while by default it allows only 20 fields. so how can we set the fields as per our need?
Hi Dharmendra Ojha,
Essbase rule file does not constrain you with only 20 fileds.
When you click on 'create a rule file', by default it ll show you 20 fileds .But , when you open a data file ( in your case , you data file has 30 columns i.e 30 fields) in the data prep editor , you ll see all 30 fileds .
So ,you have to do nothing to increase the filed count , rule file will automatically show all fields .
Revert back for further clarity
Sandeep Reddy Enti
HCC
http://analytiks.blogspot.com
Maybe you are looking for
-
Distinguishing Open and Closed Purchase Orders
We have a BI query which shows all Purchase Orders split by line item. We would like to be able to determine which of those Purchase Order line items is closed within the core SRM system and which are still open. Is anybody aware of an InfoObject tha
-
LaserJet Pro MFP M225dw driver not available for Mac OS10.4.11
I can print by connecting the printer to the computer with USB connector. But without the driver, the printer is seen by the computer as a generic postscript printer; and the printer's special attributes such as 2-sided printing is not made available
-
Personal file sharing has problems...
I have a very plain, basic network here at home. I have a 8 port switch that connects all of my computers to my network. These include several that are connected wirelessly (2 ibooks, MacBook, PowerBook) and 2 wired connections in a Mac Pro and a Dig
-
Hard drive crash trying to update iTunes with my iPod
So my hard drive crashed all data on it erased, have most of it backed up except for more recent songs in iTunes, which are on my iPod. How do I transfer my iPod data to my newly installed iTunes?
-
Cookie persistence for HTTP traffic
hello, i have the following situation: on an 11506, clients connects to VIP on port 80, this VIP maps to port 7777 on 2 services. The objective is to configure cookie persistence for http. The cookie persistence should be for URI /thestring/ I have u