Prepare for your Next Interview
|
Welcome to the Geeks Talk forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
This is a discussion on Informatica PowerCenter server is not evaluating the current value of a variable within the Data Warehousing forums, part of the Databases category; Folks, I need your help ...a newbie to informatica Here is my scenario. I have a source table with 5 columns date, opening bal, prod qty, sold qty and closing ...
|
|||||||
|
|||
|
Folks, I need your help ...a newbie to informatica
Here is my scenario. I have a source table with 5 columns date, opening bal, prod qty, sold qty and closing bal. Opening bal and closing bal are blank in the source table. My question is can opening bal and closing be populated in the target using mapping variable without going through staging? closing bal=opening bal + prod qty - sold qty and opening bal = closing bal of previous day ( assume opening bal of first day is 0). I tried the following steps 1) Defined a mapping variable $$open_bal (initial value =0) 2) Created an expression transformation opening_bal=$$open_bal (Input unchecked, output checked) date - source input prod_qty - source input sold_qty - source input v_closing_bal - $$open_bal+prod_qty - sold_qty (variable checked, input & output unhecked) closing_bal=v_closing_bal (output) v_open_bal=SETVARIABLE($$BEGIN_BAL, v_closing_bal) 3) projected ports opening_bal,date,prod_qty,sold_qty & closing_bal to target table. It doesn't look like server evaluates the current value of a variable as each row passes through the mapping. But the PowerCenter Server saves the latest value of a mapping variable to the repository at the end of each successful session. Regards, Robert |
| Sponsored Links |
|
|||
|
Re: Informatica PowerCenter server is not evaluating the current value of a variable
Hi,
No its not possible because a mapping variable is used only when the value is common for all the rows. But, in this case open_bal is not same for all the record and at the end of session run mapping variable will be populated with close_bal of last record. This value of mapping variable will be used for open_bal of first record which is not correct. May be m going with wrong scenario, can u explain it in detail? |
| The Following User Says Thank You to bankatesh.bharti For This Useful Post: | ||
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Error in server -------- Informatica. | suneetha.gorthy | Data Warehousing | 4 | 02-11-2009 02:07 PM |
| Informatica PowerCenter Developer | Maria_Miki | Data Warehousing | 2 | 02-06-2009 12:37 PM |
| current version of informatica and datastage | winsankar | Data Warehousing | 1 | 07-29-2008 06:12 AM |
| Assigning a variable based off app's current state | QTP_Player77 | QTP | 1 | 01-10-2008 09:04 PM |
| Trying to install Informatica on SQL Server | Geek_Guest | Data Warehousing | 1 | 08-16-2007 08:09 AM |