z/OS TSO/E REXX Reference
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Format of argument list

z/OS TSO/E REXX Reference
SA32-0972-00

Parameter 2 points to the arguments for the exec. The arguments are arranged as a vector of address/length pairs, one for each argument. The first four bytes are the address of the argument string. The second four bytes are the length of the argument string, in bytes. The vector must end in X'FFFFFFFFFFFFFFFF'. There is no limit on the number of arguments you can pass. Table 1 shows the format of the argument list. TSO/E provides a mapping macro IRXARGTB for the vector. The mapping macro is in SYS1.MACLIB.

Table 1. Format of the argument list
Offset (dec) Number of bytes Field name Description
0 4 ARGSTRING_PTR Address of argument 1
4 4 ARGSTRING_LENGTH Length of argument 1
8 4 ARGSTRING_PTR Address of argument 2
12 4 ARGSTRING_LENGTH Length of argument 2
16 4 ARGSTRING_PTR Address of argument 3
20 4 ARGSTRING_LENGTH Length of argument 3
                   ⋮                                      ⋮
Offset (dec) Number of bytes Field name Description
x 4 ARGSTRING_PTR Address of argument n
x+4 4 ARGSTRING_LENGTH Length of argument n
x+8 8 X'FFFFFFFFFFFFFFFF'

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014