Originally posted by: Liv2luv
I am transforming a text file into an xml file. The text file follows copy book format and has "DEPENDING ON - OCCURS" clause, therefore the xml output needs to iterate depending on the item value in the copy book. In the xml output file I have defined a functional map with input record as argument.
Eg: =F_FUNCTIONALMAP(ENROLLMENT_LIST Group:RESPONSE_DETAIL:txtInput)
This is good only for 1 iteration. But for multiple iterations, this does not work because the iteration should be dependent upon the count value in the text file. Therefore when I am passing two arguments to the functional map as ;
= F_FUNCTIONALMAP(ENROLLMENT_LIST Group:RESPONSE_DETAIL:txtInput , COUNT(ENROLLMENT_LIST_COUNT Field:RESPONSE_DETAIL:txtInput))
the build throws following error :
Map: NewMap1 Output: enrlDetail:sequence:enrlDetails:sequence:contractDetails:sequence:xmlOutput
Number of arguments for functional map F_FUNCTIONALMAP is incorrect.
Number specified: 2 Number required: 1
The documentation says, we can have more than one argument for the functional map and the map would be triggered only when the argument value evaluates to some valid number.
Can some one help me how to pass correct valid arguments to the functional map and the map should be evaluated depending on the COUNT of the item.
Thanks,
WTX 8.2.0.4
#DataExchange#IBM-Websphere-Transformation-Extender#IBMSterlingTransformationExtender