Previous Topic: Outcome of Processing a REXX RoutineNext Topic: Omit Arguments


Pass Arguments

Field EFPLARG in the EFPL (whose address is passed in register 1 on entry to a REXX function) contains the address of the argument list. The argument list consists of two full words (eight bytes) for each argument specified on the routine or function call. The first word points to the address of a string and the second word contains the length of the string. X'FFFFFFFFFFFFFFFF' terminates the argument list.

For example, this function call:

a = UserFunc("First",2,"Argument 3")

Results in this argument list:

DC A(ARG1),F"5"
DC A(ARG2),F"1"
DC A(ARG3),F"10"
DC X"FFFFFFFF",X"FFFFFFFF"

Pointed to by field EFPLARG. In this example:

ARG1 DC C"First"
ARG2 DC C"2"
ARG3 DC C"Argument 3"