Originally posted by: SystemAdmin
I can only try to see if what I say offers a route to take, but..
Possible what jahness was mentioning when using another card...
Maybe have your first output card as just a numeric field, and put the value you want for the first f_map run. That value will always be the one you manipulate using GETANDSET(). I believe the index will always change, but maybe depending on the results, you can manipulate the GETANDSET value. Something like...
fmap(Input1, Input2, Index, getnsetfield:outputcard1)..
In the F_map map rule
=IF (FieldX = "D", /*move*/
GETANDSET(FieldY(Index) , INDEX(fieldY)-1 {new value} , 1 or 2 based on what value you want for the next map run)
I don't know, but it maybe worth a shot, if you can put logic with the get and set, like,
IF INDEX(FIELDY) > INDEX(FIELDY{LAST}), GETANDSET(INDEX(FIELDY), INDEX(FIELDY)-1, 1)
else, GETANDSET(INDEX(FIELDY), INDEX(FIELDY), 2)
Something like that maybe (?)...
good luck
Message was edited by: rep
#IBMSterlingTransformationExtender#DataExchange#IBM-Websphere-Transformation-Extender