Skip to content
REXX & automation

REXX

A readable scripting language used across the mainframe for automation, tooling and quick one-off tasks.

Also written Restructured Extended Executor

REXX is the scripting language of the mainframe. Where COBOL writes the business applications, REXX writes the tools around them: automation, housekeeping, reporting, testing aids and the small utilities that make a team's day easier.

It was designed to be easy to read and forgiving to write. Variables need no declaration, types are handled automatically, and arithmetic is decimal and accurate. The syntax is close to plain instructions, and a useful script can be a dozen lines.

Its real power on z/OS is the ability to issue commands to the environment it runs in. A REXX exec can issue TSO commands, drive ISPF services, submit jobs, read and write datasets, and inspect the results, checking what came back and deciding what to do next. That makes it the natural glue between things.

It runs interactively rather than being compiled, so the write-run-fix loop is fast, which is exactly what you want for the kind of work it is used for.

It is also an excellent first language on the platform, because you can do something useful within minutes.

Browse all 115 terms

Learn this properly.

Use REXX for real in Mainframe101, in your browser, with Zed beside you. Join the waitlist.

Early access and updates. No spam, unsubscribe any time.