Originally posted by: SystemAdmin
You need to get the map2 to return the audit log back to the calling map, you can do this by amending your command line to:
= RUN (
"map2.mmc",
"-AEM" )
this will echo the audit log of map2 back to the rule that you called the map from.
you can then pull out the error message from map2 using the following in another rule:
=EITHER (WORD( WORD( RunMap Field:Results,
"</Message>", 1 ),
"<Message>", 2 ), LASTERRORMSG())
You could also use:
{code}SUBSTITUTE (RunMap Field:Results,"FAIL function aborted map:","" )
to remove the auto generated failure message and just leave the original FAIL function text from running map2.
#DataExchange#IBMSterlingTransformationExtender#IBM-Websphere-Transformation-Extender