Passing arguments, Using the call instruction or a rexx function call – IBM SC34-5764-01 User Manual

Page 39

Advertising
background image

4. lastname = WEBER, firstname = JOE, score = 91

5. lastname = Baker, firstname = Amanda, score = Marie 95

6. lastname = Callahan, firstname = Eunice, score = 88

Passing Arguments

Values passed to a program are usually called arguments. An argument can consist of one word or a
string of words. Blanks separate words within an argument from each other. The number of arguments
passed depends on how the program is called.

Using the CALL Instruction or a REXX Function Call

When you call a REXX program using either the CALL instruction or a REXX function call, you can pass
up to 20 arguments to the program. Separate each argument from the next with a comma.

For more information about functions and subroutines, see Chapter 6, “Writing Subroutines and Functions,”
on page 57.
For more information about arguments, see section “Parsing Multiple Strings as Arguments”
on page 78.

Writing and Running a REXX Program

Chapter 2. Writing and Running a REXX Program

17

Advertising