The ARGS statement specifies a string of positional arguments to pass to a batch file, script, command, or program.
Supported Job Types
This statement is optional for the following job types:
Syntax
This statement has the following format:
ARGS argument ...
Specifies the string argument to pass to the batch file, script, command, or program.
Limits: Case-sensitive
Note: You can pass multiple strings as a single argument by enclosing them in double quotes: “parm1 parm2”
Notes:
ARGS ‘#KEYS~;#MYTERM’
Example: Pass Positional Arguments to a Windows Program
This example passes three arguments to a Windows program. The argument "C:\Pay Data\salary.dat" is enclosed with double quotation marks because it contains a space.
ARGS "C:\Pay Data\salary.dat" 341 749
When the program runs, the arguments are set as follows:
|
Argument |
Value Passed |
|---|---|
|
1 |
C:\Pay Data\salary.dat |
|
2 |
341 |
|
3 |
749 |
Example: Pass Positional Arguments to a UNIX Command
This example passes three arguments to a UNIX command. The argument "user 1" is enclosed with double quotation marks because it contains a space.
ARGS "user 1" 905-555-1212 749
When the command runs, the arguments are set as follows:
|
Argument |
Value Passed |
|---|---|
|
1 |
user 1 |
|
2 |
905-555-1212 |
|
3 |
749 |
Example: Pass Positional Arguments to CA WA Agent for HP Integrity NonStop
This example passes one argument to CA WA Agent for HP Integrity NonStop. The argument "PARM1 PARM2" is enclosed with double quotation marks because it contains a space.
ARGS "PARM1 PARM2"
|
Copyright © 2013 CA Technologies.
All rights reserved.
|
|