Originally posted by: SystemAdmin
This worked nifty for me. I tried GetAndSet on an input card that was a single number field. I use a source of Echo and the value of 0 (zero). Then in my first output card I did a GetAndSet:
code:1:a0073b7d17 InputCard : SeqNo
Type Tree : Single Number Field
Source : Echo
Value : 0
OutputCard: Burst_Instance
Type Tree : Single Number Field
Source : Sink
Rule : =GetAndSet(SeqNo,SeqNo + 1, 2)
[/code:1:a0073b7d17]
Now the secret to using the correct value is to reference
b:a0073b7d17Burst_Instance[/b:a0073b7d17] and not
b:a0073b7d17SeqNo[/b:a0073b7d17]. The reason is
b:a0073b7d17SeqNo[/b:a0073b7d17] doesn't exactly keep up for some reason. I think it might have to do with the min/max settings on the number field type tree.
Hope this helps,
John M Gibby
#IBM-Websphere-Transformation-Extender#IBMSterlingTransformationExtender#DataExchange