The ARGS statement specifies a parameter passed to a database stored procedure in a Stored Procedure job.
Supported Job Type
This statement is optional for the Database Stored Procedure job type.
Syntax
This statement has the following format:
ARGS [IGNORE] parm_name [IN|OUT|INOUT] data_type[,value]
(Optional) Specifies that the value is not returned.
Note: This operand only applies to output parameters.
Specifies the name of the parameter.
(Optional) Specifies the parameter type. Options are the following:
Specifies the database data type of the parameter.
The following data types are supported:
(Optional) Specifies the value of the parameter.
Limits: Up to 100 characters; case-sensitive
Note: This value applies to input parameters only.
Notes:
Example: Pass Parameter to a Stored Procedure
This example defines a Stored Procedure job. The agent runs the stored procedure PAYROLL, passing in the parameter 'ename INOUT VARCHAR,John Evans'. Success is determined by whether ename begins with the string John when PAYROLL completes.
AGENT CYBDB1 SPNAME PAYROLL ARGS ename INOUT VARCHAR,John Evans JOB_CRITERIA ename=John.*
|
Copyright © 2013 CA Technologies.
All rights reserved.
|
|