Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.
Originally posted by: Varsha.PindolaMorning
I wonder if you can help, attached is the data file,I�m working with and from the data, I need a line per handset as shown in output.txt
Code used to create the sequencing don�t work as expected, don�t reset when the product name and bonus changes. PLEASE can you help.
if firstInGroup
then {
SeqNum = 1
PrevBonus = PromotionBonus
PrevProdName = 'Product Name'
}
else if (PromotionBonus == PrevBonus and 'Product Name' == PrevProdName )
then {SeqNum = SeqNum + 1
PrevBonus = PromotionBonus
PrevProdName = 'Product Name'
}
else SeqNum = 1
emit *, SeqNum,
strcat('Connection Month','Product Name',PromotionBonus) as xx
Kind regards
Varsha
Attachments:
data.txt
output.txt