Previous Topic

Next Topic

Book Contents

Book Index

REXX External Function Syntax

REXX External Function syntax is implemented with the provided CTOREX REXX External function and according to REXX syntax rules. The External function can be called either by using assignment statement syntax or through the REXX CALL statement.

The assignment statement syntax is

rexxvar = CTOREX(function,parameter)

The syntax of the REXX CALL statement is

CALL CTOREX function parameter

Example

INIT0 = CTOREX("INIT")

SAY "INITIALIZATION =" INIT0

SETLC1 = CTOREX("SETOLOC","%%MYVAR = %%$TIME")

SAY "SETLC1 =" SETLC1

CALL CTOREX "TERM"

SAY "TERMINATION=" RESULT

Parent Topic

Extended Automation Mechanism