??? 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.
¯\_(ツ)_/¯
Similar Messages
-
Using report scripts in Excel - shameless plug for my blog
I finished the second installment of my Blog, Using Report Scripts in Excel. It can be found at:
http://glennschwartzbergs-essbase-blog.blogspot.com/Thank you Glenn! I just started to look into report script though we've had the tool for years. And look forward to your next installment.
-
Export metadata using report script/data export
Hi all,
I have a cube with 3 dimensions:
1. Accounts
2. Period
3. Products
My purpose is to create a txt file using report script (if someone have a better idea I'm willing to hear) as following:
Accounts (level 0), Period (level 0), Products(level 0), ***Products (parent(level 0))***
The challenge is to create an additional column with metadata information like parent of the previous column in my exapmle.
I will be very happy if someone can help me with that.
**I'm using essbase 11.1.2.3
Thanks,
YuvalReport Sript - it's tool for DATA
not for MetaDATA
For u purpose use
* Applied Outline Export Utility
* Maxl Shell command
* XMLA https://code.google.com/p/essbase-plsql-interface/downloads/list
ER -
Modify an user attribute using Powershell script
In the current account creation script I am setting the following two attributes targetAddress and proxyAddressess:
$UserAttributes[0].Add('targetAddress', $User.mail)
$UserAttributes[0].Add('proxyAddresses', "SMTP:" + $User.mail)
I need to be able to change these values sometimes. I thought if I replaced add with replace that would work it did not.
Ideas?
Here is the whole function:
$AttributeItems=$UserAttributes[0].GetEnumerator()
ForEach ($AttributeItem in $AttributeItems) {
$AIKey=$AttributeItem.Key
$NewAttribute=$AttributeItem.Value
$ADAttribute=$FullUser.$AIKey
if ($ADAttribute -ne $NewAttribute) {
Set-ADUser $User.sAMAccountName -Replace @{$AIKey=$NewAttribute}
$UserAttributes[0].Add('targetAddress', $User.mail)
$UserAttributes[0].Add('proxyAddresses', "SMTP:" + $User.mail)
$ClearCount=$UserAttributes[1].Count
If ($UserAttributes[1].Count -gt 0) {
Set-ADUser $User.sAMAccountName -Clear $UserAttributes[1]
$enattendantgodot='Hold on there pardner!'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.
¯\_(ツ)_/¯ -
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 AdvanceIf 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!
-
Hi,<BR><BR>Is there any way to display the output membernames with double quotes using Report Script in Essbase.<BR><BR><BR>ie: <BR>"Actual" "Sales" "Market"<BR>"Qtr 1" "Qtr 3" "Qtr 3" "Qtr 4" #Missing<BR><BR>Thanks<BR><BR>Osvaldo
Hi,<BR><QUOTEMBRNAMES option will help you.
-
Hi All,
We are trying to write a report script to extract Level 0 data. We have an UDA associated with some parent members under a dimension (say "Entity"). Is there any way we can extract the level zero members of parent which are tagged with that UDA??
Something like <LINK (<LEV((<DESCENDANTS("Entity") AND <UDA(Entity, ABCD)),0) where ABCD is the UDA tagged to the parent members.
Please suggest.user8927833 wrote:
Below are the examples to get data out using report scripts using UDA
<UDA (product, "Sweet")The following example uses the UDA command within a LINK statement to select level 0 products that are sweet:
<LINK(<UDA(product, "Sweet") AND <LEV(product, 0)).
If you are on BSO then you can write data export calc scriptI am pretty sure that neither of these will work based on what the OP described. The first one would only get the members with the UDA, the second, only those at Level 0 with that UDA. I think the issue is that you cannot obtain the hierarchy beneath the UDA members. As timg suggested, push the UDA down to level 0, or figure another way out. -
Report script export 0 KB file from BSO application
HI, I am try to export budget data from classic planning application using report script in essbase. Report script is not giving any erros. After successful execution it is creating 0kb file. I am able to export data for the same combination using Calculation script. But, report script is not giving any output. I need to export data using report script only. Can any one help on this.
Can you post the calculation script too?
{SUPMISSINGROWS}
<PAGE(SCENARIO,VERSION,CURRENCY,YEAR,CUSTOME3)
BUDGET FINAL Local FY13
<ROW(ENTITY,ACCOUNT,CUSTOME1,CUSTOME2,PERIOD)
<LINK(IDESCENDANTS(ENTITY) AND <LEV(ENTITY,0))
<LINK(IDESCENDANTS(ACCOUNT) AND <LEV(Account,0))
<LINK(IDESCENDANTS(CUSTOME1) AND <LEV(CUSTOME1,0))
<LINK(IDESCENDANTS(CUSTOME2) AND <LEV(CUSTOME2,0))
JUL
<COLUMN(HSP_RATES)
HSP_INPUTVALUE
Why do you want to use LINK if you are pulling all level 0 <LEV will do the trick, unless you are targeting a specific parent other than the root.
Regards
Celvin -
RE: Essbase Report Scripts
Hi all
i really thanks for your support ...
Here is my question
I need a Essbase report script which in essence is a basic query where we would say all lev 0 cost centers excluding the some of the rollup points.
i.e i need to delete some level 0 members using Rule script and we are in 6.5.4 version please help me out in this situation
Please i really need this script or else please let me know is this possible using report scripts..
Please ...
Thanks
jai
Edited by: user9314481 on Mar 11, 2010 5:59 AMHi all
I am not able to find a solution for this issue , please help me out...
I need a Essbase report script which in essence is a basic query where we would say all lev 0 cost centers excluding the some of the rollup points.
i.e i need to delete some level 0 members using Rule script because my level 0 members are combination of product 'A ' and Product 'B' but now my users are interested in Product 'B' data and we are in 6.5.4 version please help me out in this situation
Please i really need this script or else please let me know is this possible using report scripts.. -
Hi,
Is it possible to make report scripts to the XML format in Essbase (using Report Script Editor)? I've only done report scripts, that is saved in .txt format.
Thanks in advance!Hi, I wan't to export data by using report script editor, but the file that I get from that should be xml. Is it possible?
-
Cartesian Product - Report script
Hi All,
I am trying to export data for a specific scenario and version using report script.
I am taking level 0 members of a specific dimension and it is throwing error as follows:
"The Product of member counts across all dimensions in the query exceeds 2^64"
I think the cartesian product is beyond the limit value.
Is there any alternative method to export data of level 0 members for that dimension?
or is there any command to select only few members from that dimension, so that I can make into two scripts and execute to export data.
Thanks.
Regards
Rav"or is there any command to select only few members from that dimension,"
Take a look at the member selection report script commands. If you have a hierarchies in your dimensions than you can use these to "break up"/more narrowly focus your report script -
How to Flip the Sign using Calculation script for historical data
I am currently using Essbase 9.3.1. Its required to flip sign for a specific set of accounts for that i am currently using UDA's to flip the sign.
But now i need to flip the sign for the historical data too. Is there any possible way to flip the sign using calculation scripts for historical data. Kindly let me know your suggestions.
Many thanks in Advance...
Edited by: [email protected] on Jul 30, 2009 9:37 PM
Edited by: [email protected] on Jul 30, 2009 10:58 PM
Edited by: [email protected] on Jul 30, 2009 11:01 PMOf course there is. This is the kind of calc script that only gets run once, so make usre you test it well before doing it on production and make a backup of production before doing it.
It would be something like
Fix(time frame, accounts to be flipped, level zero other dimensions)
actual = actual * -1;
EndFix
Cal dim dimensions
Note, I chose actual, but you could do it for any dimension that has a single or only a couple of members. What ever dimension you choose to do the calculation on, it can't be included in the fix statement -
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 to have attributes
Hi,
I am developing a report script to extract the base dimension members as well as some of the attributes in the columns, followed by the last data column. I have the product dimension with 2 attributes (Brand and Origin).
However, when I put all the dimensions, including the 2 attribute dimensions in <Row section, I always get the product on column, and I also have the "attribute calculation" in the first column in the output file. Below is my report script:
{ TABDELIMIT ROWREPEAT NOINDENTGEN OUTMBRNAMES
SUPEMPTYROWS SUPMISSINGROWS SUPFEED SUPCOMMAS}
{ decimal 8 } { IndentGen -5 }
<ROW("Customer","Product", "Scenarios","Company","Years","Period","Measures", "Brand", "Origin")
<LINK (<CHILDREN("Customer"))
<LINK (<CHILDREN("Product"))
"Actual"
"ABC"
"2010"
"Jan"
"Sales Quantity"
"XYZ"
"US" "Europe"
The output file is as below:
P1 P2
Attribute Calculations Customer1 Actuals ABC 2010 Jan Sales Quantity XYZ US 100 200
I would like to have the output file as below:
P1 Customer1 Actuals ABC 2010 Jan Sales Quantity XYZ US 100
P1 Customer1 Actuals ABC 2010 Jan Sales Quantity XYZ US 200
Here XYZ and US are attributes of products P1 and P2.
Thanks in advance for any suggestion.Glenn,
Thanks for the reply. There is no problem from the os side. It can hadle big files. The script fails with network error cannot send data. .abnormal exit from report writer etc. The nohup.out file says insufficient disk space. .however there is enough disk space. Just wondering if something is leading the 32 bit essbase into thinkin that there isnt enough disk space. The size of the file generated always stops at the value equivalent to the largest positive signed int and then the script fails.
Any input is much appreciated.
Thanks -
Problem-Report generation using shell script
Hi
We have the Production database and the Reporting database (copy of Production database),
both on Oracle 9.2.0.5 and Solaris 5.8. There is a package inside the Oracle database, which extracts some data from inside the
database, and would generate a report. A shell script has been created in Solaris which would
send in the parameters and call the pakage to generate the report. The parameters it is sending is
the name of report to be generated, and the location where it is to be generated, both hard-coded into
the script. The script is scheduled to run through crontab.
The problem we are facing is that, if we run the script for Reporting database, it successfully
generates the report. But if we use that script for Production database, it gives the error
"Invalid directory Path". I have tried using various other directory paths, even '/tmp'
and '/', but it still gives the same error when executed for Production dataabse.
Could somebody provide any ideas what might be going wrong.
The reasons it is to be executed on Prod db and not the Reporting database are unavoidable.
It anyway runs in off business hours and takes about 10secs to execute.
Please do let me know if there is any other info that I missed to provide here.
Thanks in advance...I will be just guessing because you didn't provide contents of script and package.
The "Invalid directory path" as you said could be ORA-29280 due non existent directory.
Try execute (as sys or system) select * from dba_directories; (or select * from all_directories; as user which the script is login to) on both databases and compare the results. If there is missing your important directory then create it using create directory <dirname>; (from sqlplus and don't forget to grant rights for user).
This error could come from shell script. In that case you should find resolution yourself because you didn't provide script source.
Maybe you are looking for
-
[回答内容] はい.組織は Creative Cloud エンタープライズ版のユーザー指定デプロイメントを実装した後で.Adobe Enterprise Dashboard を使用して.組織が所有していないコンピューターを持つユーザーを管理できます.
-
Any way to use cursor values inside other cursor by bulk collect?
hi, Is there any way to use cursor get_tables value insdide loop get column if i am using bulk collect in both cursors? I tried a lot but i am nt able to do it.kindly help... create or replace procedure MULTIPLE_CURSORS_PROC is v_owner varchar2(40);
-
Java.lang.NullPointerException in Message Monitoring-RWB
Hi Experts, I am getting java.lang.NullPointerException in Message monitoring.Here is the detail trace of the error message. Stack trace for the above error message is: java.lang.NullPointerException at com.sap.aii.mdt.util.SelectModel
-
Transparency flattening compression quality
Hi, In Acrobat 9, an important option was missing for transparency flattening: the compression quality setting. I found that it is now available in Acrobat XI. When I saw that, I thought that my problems with flattening were a thing of the past. Well
-
Unable to connect to Internet through KRZR - please assist
Hi folks. I have paired my KRZR K1 to my Macbook. In order for me to use bluetooth and connect to internet on the Macbook I need to input some info on the Macbook. Through reading he different forums I have inputted the following info: Tel #: WAP.CIN