Originally posted by: PaulBrett
2. Total = Mathematics+Science+History+Language; TotalDifference = PreviousTotal - (Mathematics+Science+History+Language). Since I couldn't use Total variable to calculate TotalDifference , I used all the variables again to get Total and then subtracted with PreviousTotal . Is there way that can we create a temporary output card in functional map, calculate Total and store the output. Use the stored value wherever you want in the actual output of the functional map?
A. As I have shown, there is no need to create a temporary output card (whch cannot be done anyway).
3. If we go with your approach as per your Example, what is the order of execution of this functional map? I mean, whether always Total will be calculated first?
A. The rules are always executed in order
4. What do you mean by scratch' output card?
A. 'scratch' card = temporary output card
5. I meant Re usability to calculate the Total variable once and use it's output wherever we want.
A. My example shows how the result can be used in a later rule (in the functional map)
6. Lets say I have created a functional map which calculates Total and store the response in Total variable. Now can I call the functional map like this: TotalDifference = (PreviousTotal - f_calculateTotal(In1,In2,In3,In4))? I tried this but the result was always null.
A. Your functional map call should include the 'Total:sequence:Out' reference, (as per my map) where the calculatoin has already been done. So far example:
=F_NextLevel(PreviousTotal:sequence:In1 , Total:sequence:Out)
Thank you.
Paul
Follow me on Twitter
#IBM-Websphere-Transformation-Extender#IBMSterlingTransformationExtender#DataExchange