When running workload, you might need to pass data between jobs and across platforms. You can pass positional arguments to a command in your job definition. Positional arguments are variables that can be passed to a program at the time the program is invoked. The arguments are assigned in the order they are passed.
To pass positional arguments to a command, specify the ARGS statement in the job definition. You can specify multiple ARGS statements within a single job definition.
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 |
|
Copyright © 2013 CA Technologies.
All rights reserved.
|
|