Originally posted by: SystemAdmin
OS XP
Map designer 8.0
Question -- I want a map rule to determine whether to batch on submitter or group_dest based on a field in my trading partner table.
=IF(WORD(Data,"|",1) = "MULTI",
f_data_multi(submitter:group_dest:data, data2,data3,data4),
f_data_single(group_dest:data, data2,data3,GET ("DB","-DBTYPE ODBC -SOURCE ECTP -STMT exec usp_get_next_gs 'xxxxxx',13 -T+")))
While the map compiles fine, the rule doesn't work. The way it is written works for Multi (I get multiple GS). However, when I remove the word Multi, I get three iterations of the GS. For it to work for the single, I change the f_data_multi to the following:
f_data_multi(group_dest:data, data2,data3,data4) -- which doesn't work for Multi (I only get the first GS/ST).
Is there a way to call different type tree levels from the same IF?
#IBMSterlingTransformationExtender#DataExchange#IBM-Websphere-Transformation-Extender