Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

EXIT function

Status
Not open for further replies.

jinkys

Programmer
Sep 11, 2003
67
GB
Hi
I am taking in xml messages from a channel and writing output messages to a database but if InputField1 isnt present I want to send a mail out using the UNIX mailx command.

Please see rule below, using the EXIT function it will not let me compile, see error below.

=IF( PRESENT(InputField1), IF(MEMBER(InputField2,{"IAM", "PD"}) ,F_MMCASHFLOW(In1,In2),NONE),EXIT( "mailx", " ", " "))

M113 ERROR:
Map: Map1 Output: Row:Out1
Argument #3 for function IF is invalid.

Does anyone have any ideas why or suggestions how to do this a better way?

 
You can't use a functional map they way you are trying. Try using a RUN map.

BocaBurger
<===========================||////////////////|0
The pen is mightier than the sword, but the sword hurts more!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top