Data Transformation Engine Functions and Expressions Reference Guide

Chapter 3 - Function Reference EXIT
Functions and Expressions Reference Guide
102
At execution time, the program specified by program_name executes and
passes the concatenation of command_line_arg1 + " " + command_line_arg2
as a text string.
Whatever is returned by program_name to the standard output device is
returned as text.
Returns
This function returns a single-text-item.
Returns a text string from the function or application that is executed. If the
EXIT function is not available for a particular platform, EXIT returns NONE.
Examples
EXIT ( "mydll.dll" , "myfunction" , "12" )
This Windows library example passes the value 12 to myfunction, a function
in mydll.dll. The value of the item returned depends on what myfunction
does with the 12 passed to it.
IF (EXIT ("mylib.sl" , "ckCust" , CustID Column:Row:DB) =
"OK" ,
MapKnownCust ( Row:DB ) , MapUnknownCust ( Row:DB ) )
Similarly, this UNIX library example passes the value of CustID Field to
ckCust, a function in a UNIX shared library called mylib.sl. If the value
returned by
ckCust is OK, a functional map is called to map Row for a known
customer. Otherwise, another functional map is executed to map Row for an
unknown customer.
EXIT ( "pwd" , " " , " " )
This UNIX program example executes the UNIX print working directory (pwd)
command to determine the current directory. The name of the current working
directory is then returned as a text string. Notice that although the pwd
command does not require additional command line arguments,
command_line_arg1 and command_line_arg2 must be included as a space
enclosed in quotes (" ").
TEXTTONUMBER ( ( EXIT ( "GetIncome" , Applicant:Form ,
"*Mortgage" ) )
This program example passes the value of Applicant concatenated to the
text literal
*Mortgage to an application called GetIncome. The result is
converted to a number.