Setting Essbase substitution variable thru ODI
Hello Friends,
We have some procedures in ODI that call maxl scripts to unlock app, clear data and agg. But how do we set Substitution variable in Essbase?
Any feedbacks are appreciate...
Thank You.
Thanks John.
- We created a maxl script with the statement below
alter system set variable 'ActMon' 'Feb';
- Created a procedure in ODI to call the maxl
the procedure is working...but we still have to manually edit the maxl script every month to change the current month value.
How about this?
We have a oracle table in ODI schema which has month column populated. can we use that month column data and some how set the Essbase Sub var?
Similar Messages
-
Is it possible to read Essbase Substitution variables from ODI?
Is it possible to read Essbase Substitution variables from ODI?
Hi,
You can do it with custom code, if you have a read of a blog I wrote :- http://john-goodwin.blogspot.com/2009/11/odi-series-planning-11113-enhancements.html
About half way through I go into reading essbase sub vars using the essbase java API.
Cheers
John
http://john-goodwin.blogspot.com/ -
How to get essbase substitution variable in ODI
Hi All,
I have a problem that I need to get the substitution variable from Essbase /EAS to work on some SQL statement in ODI.
How can I do in ODI ???
Thanks for all ..
ThomasHi,
If you read my blog post :- http://john-goodwin.blogspot.com/2009/11/odi-series-planning-11113-enhancements.html
In the post there is a section on retrieving essbase substitution variables and using them in ODI.
Cheers
John
http://john-goodwin.blogspot.com/ -
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 -
Using a business rule to set the substitution variables
Hi All,
I am having issues with setting the value of Substitution variable from a Business rule.
Any help would be appreciated.
Thanks,
ShakilThanks for your response, John.
I am trying to set the Substitution variable through a data form on which the Business rule is attached.
The admin guide for Planning states that "You can set substitution variables on the Essbase server,
application, or database level. The same substitution variable can exist on multiple levels;
Planning uses the first one it finds as it searches in this order: 1) database 2) application 3)
server." So I believe that it should be possible.
Regards,
Shakil -
Essbase substitution variable used for SQL Dimension load-URGENT
Hi All,
I am creating one dimension through SQL Dimension load rule writing by parent child build rule. The SQL query is like below---
distinct trim(dist_mobile),trim(ret_mobile) from dist_retailer al1 where al1.proc_dt=to_date(&Proc_date,'dd/mm/yyyy')
When I fixed the value of proc_date (e.g.- '27/09/2008') then it is retrieving data properly, but when I try to make the same as a essbase variable as shown above (to give user the priviledge to select for which date data will be fetched from RDBMS to create the dim) and after setting the aforesaid value of that variable in essbase subs var screen and click 'OK/Retrieve' in rule,it is returning no rows executing the query as well as no error coming.
I guess in query nothing is wrong but the subs variable part is not working. Can anybody please give some insight to resolve the problem.
In this context, I would like to mention that I will have to use substitution variable in some other rule file also to automate the load process. How can I use essbase subs variable in SQL load rule? Could you please show me a proper summarise query illustrating how to use the subs var in aforesaid purpose for the sake of understanding?
Thanks in advance.Hi,
Sorry for delayed response. Appreciate your inputs. At last I have found out the solution which is as below----
distinct trim(dist_mobile),trim(ret_mobile) from dist_retailer al1 where al1.proc_dt=to_date('&Proc_Dt','dd/mm/yyyy')
after setting the substitution variable as Proc_Dt and set the value as 27/09/2008 (without any quotation mark or such sign) now I checked and now it is retrieving fine.
Thanks & Regards. -
Changing substitution variables through ODI
Hi John!
We using ODI for loading data, before load we have to clear data.
I have 2 questions regarding this issue:
1. Can I change substitution variables through ODI
2. Can I execute BR in Essbase.cmd
Regards
SashaHi,
1. You can call maxl to update the substitution variables, either using the pre-maxl options in the KMs
or you can execute an OS command through an ODI procedure
2. I am not sure what you are asking, are you asking whether you can execute BRs through ODI, if so have a read of my last blog where I covered how to do it.
You can execute BRs by using the command line launcher, have a read of the blog anyway because it goes through the command line launcher.
Cheers
John
http://john-goodwin.blogspot.com/ -
Create Report Layout (Apex 3.2) - How can I set the substitution variables?
Hi,
I created a "Report Query" under "Shared Components". I now want to work on the corresponding "report layout". I created a "Generic Columns (XSL-FO)". I read the following in the documentation:
The following are valid substitution strings:
#PAGE_HEADER#
#PAGE_HEADERFONT_COLOR#
#PAGE_HEADER_FONT_FAMILY#
#PAGE_HEADER_FONT_SIZE#
#PAGE_HEADER_FONT_WEIGHT#
#PAGE_FOOTER#
#PAGE_FOOTER_FONT_COLOR#
#PAGE_FOOTER_FONT_FAMILY#
#PAGE_FOOTER_FONT_SIZE#
#PAGE_FOOTER_FONT_WEIGHT#
#PAGE_WIDTH#
#PAGE_HEIGHT#
#HEADER_BG_COLOR#
#HEADER_FONT_COLOR#
#HEADER_FONT_FAMILY#
#HEADER_FONT_SIZE#
#HEADER_FONT_WEIGHT#
#BODY_BG_COLOR#
#BODY_FONT_COLOR#
#BODY_FONT_FAMILY#
#BODY_FONT_SIZE#
#BODY_FONT_WEIGHT#
#BORDER_WIDTH#
Where can I set the values for these substitution variables in my "Report Layout"? Could someone give an example? I can't seem to find documentation on this.
Thanks!
FrancoisThanks for the tip however I'm not trying to do this through the print tab, I'm calling the report using the following get_print_document in pl/sql code:
l_report_blob := apex_util.get_print_document(
p_application_id => l_application_id,
p_report_layout_name => l_report,
p_report_query_name => l_report,
p_report_layout_type => l_output_format,
p_document_format => l_output_format,
p_print_server => null);
Where could I set these substitution variables ? I'm simply calling a report query and layout created under Shared Components.
Thanks
Francois -
11.1.1.6.11 / Essbase Substitution Variables / RPD Init Block / Dynamic Variables
How do I update the Init Block which is populated with the Essbase Substitution variables. This is dynamically created the first time I import an Essbase cube and is populated with the Substitution variables when it is first imported into the RPD. If later on new Substitution variables are added, they are not being reflected in the Init Block or its dynamic variables. I have done the re-import of the data source with no change to the Init Block Dynamic Variables. How do I get these new Substitution variables imported?
It appears that the only way is to delete it from the Physical Layer, however this deletes any changes I have made to Cube in the physical layer.So delete it from the Physical Layer, change the Substitution Variables associated with the cube. Import it back into the physical layer. It does NOT delete existing Init Block Dynamic variables that no longer exist as Substitution variables.
-
Using an essbase substitution variable in dataexport command in a BR
Hi,
I have created a calc script to export data using DATAEXPORT, and to define the filename an essbase variable.
Here all right
I copy this code to a business rules to run it from a business rules, but I have a problem with the essbase variable, when I validate it, it gives me the error:
Detail:Encountered "&FileNm" at line 28, column 26.
Was expecting:
My essbase variable is set to:
"e:\Hyperion\products\Essbase\EssbaseServer\app\TMPGB\dataexportCustomerY2.txt"
in double quote
How anyone use in a Business rules with the command dataexport an essbase substitution variableSo it works in a calc script and not a BR, I know BR's sometimes don't always act exactly the same as calc scripts and you occassionally hit issues like this.
What version are you using because I have a feeling I have tested this in the past and I am sure it worked.
Cheers
John
http://john-goodwin.blogspot.com/ -
Essbase Substitution Variables
Hi All,
I went through the docs. but not able to find an answer to the following query.
What is the maximum number of substitution variable that we can create for an application??
We use nearly 30 variables for a application to handle security. So i wanted to know whether there is a limit for the variables?
Your inputs would be of great help. Thanks!!I can tell you in my 12 years with Essbase, I have never heard of anyone having issues using as many subvars as they need. Your best bet is to just go ahead and just try them out. To create them should not take much time at all.
John Conlee
Oracle Practice Manager - Analytic Vision -
Essbase substitution variable for memebr with '-' in name
I am trying to do subjected assignment. I have a member with '-' in name and trying to assign it to sub.var.
It let me do it in EAS (hit set and it went OK), but not in Maxl--it says syntax error near '-'
Also it is giving me wired errors while validating calc script with this var.
Any idea ?
ThanksIf the value of the subvar is encased in quotes, you don't need to quote it in the fix statement.
&subvar.
Robert -
Synchronize substitution variables values between Essbase and Planning
Hello,
In EPM version 11.1.2.1 (but we noticed the problem also in previous EPM versions) when we set the value of a substitution variable in Essbase, the value is is not immediately updated in Planning: for some time we see the old value. The value in Planning remains unchanged even in we log off or exit Planning and log on again.
Instead if we restart the Planning service, the value is immediately updated
Since we would like to use the Essbase substitution variables to manage some selections in Planning Data Entru Forms, is there any way to force a synchronization, or to increase the frequence of synchronizations between Essbase and Planning?
Regards
Francesco QuarantaHave a look at setting the planning property SUBST_VAR_CACHE_LIFETIME
http://docs.oracle.com/cd/E17236_01/epm.1112/hp_admin/properts.html
Cheers
John
http://john-goodwin.blogspot.com/ -
Substitution Variable in Essbase Report Script
Hi All,
In my report script I want to use Essbase Substitution Variable, just as an replacement to Text field... I am using following syntax:
{STARTHEADING
TEXT 0 "Bud"
&StartMonthNo
TEXT 0 "12"
ENDHEADING}
Where StartMonthNo is 1 ... I don't want to add this variable as some member in Essbase, just need to display Heading as
Bud
1
12
Using above syntax, it is just showing
Bud
12
I have tried many syntax like Text 0 &StartMonthNo or Text 0 "&StartMonthNo" But nothing seems to be working...
Please lemme know if I am missing something here .. Please give me some suggestions ...
-CJHi,
Your thinking is sound and creative, however due to the way they work you can't define a subvar as a concatenation of other subvars because it will be interpreted literally. e.g.
sv1 = hello
sv2 = world
sv3 = &sv1 + &sv2
sv3 interpreted by essbase will be: &sv1 + &sv2 and throw an error.
(If you think about it, concatenating two 255 char subvars into another would still exceed the character liimit.)
So,
if you want to concatenate several long subvars, just define them and mash them together:
&sv1 &sv2 = hello world
regards,
Robb Salzmann -
Can anyone tell me how to set a substitution variable on a data load, if possible?
Or any other way to automatically update a substitution variableyou can do it through a maxl script.
the maxl script should flow as below...
load data using import maxl command
based on the return code you can set the value of subst variable using the following script.
if it is a variable on db:
alter application <appname>.<dbbname> set variable <subst variable name> <variable value>;
if it is a server level subst variable
alter system set variable <subst variable name> <variable value>;
- Krish
Maybe you are looking for
-
How to create downloadable vcs file for a single event (not whole calendar)
Is it possible to create a vcs file in ical that, like the reservation made on opentable, can be downloaded and opened in both ical and outlook? I've tried creating an event listing for website visitors to add to their calendar, but some of the outlo
-
Working with audio in iMovie 08
I'm working on a video project and I want to use my itunes. I figured that part out easy, but now I don't know how to use only certain parts of certain songs in certainparts of the video. Any help would be great.
-
Error in Distributed transactions with tx data source
Hi, I need to write into two DB2 databases using two container managed entity beans from a container managed session bean. I use a JDBC 3.0 compatible JDBC driver and I have configured tx data source. When I run the sess
-
I reset my phone and it now receives calls that were meant for my husband. I know how to fix this with messaging and facetime, but can't seem to find how to make it stop with the calls. Please help.
-
After Effects CS6 Output Module
I'm trying to render my After Effects project and this error message pops up: "The directory originally specified in the selected output module no longer exists." I've tried changing my output module, but to no avail. Anyone know how to fix this? Tha