Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Transform If-then-else

Status
Not open for further replies.

MsSamson

MIS
Oct 16, 2007
2
US
In an Ascential Transform stage, I have a 4 byte control field "STRM" If the 4th byte is and "8", I need to set output field BALANCE to incoming field A. If the 4th byte is "2", the output field has to be set to incoming field B.

IF substring(STRM,4,1) = "8" THEN BALANCE = OFFER_BALANCE ELSE BALANCE = ZERO
(Balance is a field in the output, strm and offer_balance are fields in the input stream)
Can anyone offer a suggestion on how to do this?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top