Exec, Operands, Return codes – IBM SC34-5764-01 User Manual

Page 363: Example, Operands return codes example

Advertising
background image

EXEC

EXEC

execid

args

EXEC calls a REXX exec at a lower level (as a nested exec). All variables for this new exec are kept
separate from the higher level exec, which is suspended until the nested exec ends.

Operands

execid

specifies the 1 to 17 character identifier of the exec.

args

specifies the argument string being passed to the called exec.

Return Codes

n

specifies the return code set by the exit of the called exec

0

Normal return

-3

Exec not found

-10

Exec name not specified

-11

Invalid exec name

-12

GETMAIN error

-99

Internal error

Example

'EXEC ABC'

This example executes exec ABC.EXEC.

Commands

Chapter 25. REXX/CICS Commands

341

Advertising