Previous Topic: Verify File Space Before a UNIX Job StartsNext Topic: Pass Environment Variables in a UNIX Job


Pass Positional Arguments in a UNIX Job

When running workload, you might need to pass data between jobs and across platforms. You can pass positional arguments to a command or script 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 or script, specify the ARGS statement in the job definition. You can specify multiple ARGS statements in a UNIX job definition.

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