z/OS Using REXX and z/OS UNIX System Services
SA23-2283-00
$ pgm1 'arguments to' 'pgm1'
this is the main pgm
it was passed 3 arguments:
Argument 1: "pgm1"
Argument 2: "arguments to"
Argument 3: "pgm1"
This is pgm2
Using __argv stem, there are 3 arguments. They are:
Argument 1: "pgm1"
Argument 2: "arguments to"
Argument 3: "pgm1"
Using arg(), there are 2 arguments:
Argument 1: "arguments"
Argument 2: "to pgm2"