Geeks Talk

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.

Informatica PowerCenter server is not evaluating the current value of a variable

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 ...

Go Back   Geeks Talk > Databases > Data Warehousing
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read

Data Warehousing Data Warehousing

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-16-2009
Junior Member
 
Join Date: Jun 2009
Location: california
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
rmala is on a distinguished road
Question Informatica PowerCenter server is not evaluating the current value of a variable

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
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 06-19-2009
Junior Member
 
Join Date: Jun 2009
Location: bangalore
Posts: 3
Thanks: 0
Thanked 1 Time in 1 Post
bankatesh.bharti is on a distinguished road
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?
Reply With Quote
The Following User Says Thank You to bankatesh.bharti For This Useful Post:
Reply

  Geeks Talk > Databases > Data Warehousing

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


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


All times are GMT -4. The time now is 02:46 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved