dbTalk Databases Forums  

Assign Global var in Transformation Active X

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Assign Global var in Transformation Active X in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Bill W
 
Posts: n/a

Default Assign Global var in Transformation Active X - 11-17-2009 , 09:10 AM






Hey,
I have an import from a flat file that has 70 plus rows. One row's
counterpart is an int. One row failed, it contained a space, where the
acceptable values are 0, 1, 2, and 3. Business rules state if two
other fields = zeros, I can put a 0 in the field.
How can I check DTSSource("002") and DTSSource("017")'s values at
DTSSource("027")'s transformation step?
I tried creating Globals and at 002 create an extra transform that
sets DTSGlobalVarialbes("ArNumber").value = DTSSource("002"). I do not
get the value of 002 in the Global. I put a MsgBox display and it
shows the value... but it apparently does not stay valid until 027!
Same with other field.
Is this even possible? Any Ideas?

Thanks,
Bill

Reply With Quote
  #2  
Old   
Bill W
 
Posts: n/a

Default Re: Assign Global var in Transformation Active X - 11-19-2009 , 10:42 AM






On Nov 17, 7:10*am, Bill W <billwilly... (AT) gmail (DOT) com> wrote:
Quote:
Hey,
I have an import from a flat file that has 70 plus rows. One row's
counterpart is an int. One row failed, it contained a space, where the
acceptable values are 0, 1, 2, and 3. Business rules state if two
other fields = zeros, I can put a 0 in the field.
How can I check DTSSource("002") and DTSSource("017")'s values at
DTSSource("027")'s transformation step?
I tried creating Globals and at 002 create an extra transform that
sets DTSGlobalVarialbes("ArNumber").value = DTSSource("002"). I do not
get the value of 002 in the Global. I put a MsgBox display and it
shows the value... but it apparently does not stay valid until 027!
Same with other field.
Is this even possible? Any Ideas?

Thanks,
Bill
Ok, I figured it out... You do not have to use a Global Var. Just
refrence the colums in the datapump transform step and you can check
the values of those columns (002, 0017,...) then do your comparisons
on those colums to match your criteria, use your If-Then-Else stmts to
do your work. Actually pretty simple.
Thanks for trying....
Bill

Reply With Quote
Reply




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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.