SQL statement (-S or -STMT)
Use the SQL Statement adapter command (-STMT) either for a source or in a GET function to specify an SQL statement or a call to a stored procedure using either the database-independent or native call syntax to be executed. This execution will provide the input data to a map.
-STMT SQL_statement
The "database-independent" syntax for invoking a stored procedure requires the query statement to commence with a "call" command. Following the "call" command, you must specify the input, output and return parameters. Use parentheses to enclose the input and output parameters, separating consecutive parameters with a comma. To indicate a return or an output parameter, use a "?" mark. If you do not need the return value, simply omit it, and if you want to disregard an output parameter, replace it with an 'X'.
-STMT “call sp_input_param (‘I’’m escaping a single quote in this input value.’)”In cases where both input and output parameters are necessary, place the output parameter's '?' mark first, and delimit it from the input parameter using a forward slash character, '/'.
-STMT "call sp_params(param1,?/param2)""call ?=sp_params(...)"