codegurukool.com · Free coding tutorials & online compiler

Home › Mainframe Tutorial › REXX scripting

REXX scripting

A friendly scripting language for z/OS.

REXX scripts automate work on TSO. The first line must be a comment with the word REXX. SAY prints a value, and DO repeats a block.

Example code

/* REXX */
DO i = 1 TO 3
  SAY "Line" i
END

Run this code in the online editor

← CICS basicsJob output and return codes →