CoreProgramming34 min
REXX scripting on z/OS
The mainframe's everyday scripting language. Automate TSO and ISPF tasks, read and write datasets, run TSO commands in batch, and write ISPF edit macros.
What you will be able to do
- Write and run a REXX exec in TSO and in batch
- Use variables, loops, SELECT and PARSE to process text
- Read and write datasets with EXECIO and run TSO commands from REXX
- Write a simple ISPF edit macro and handle errors properly
Lessons
- Your first REXX execREXX is a simple, readable scripting language built into z/OS. People use it to automate the repetitive parts of mainframe work: checking datasets, running TSO commands, building…
- Decisions, loops and PARSEREXX has the control structures you expect, plus PARSE, a powerful way to split text into pieces. Together they let you process lists of datasets, report lines and command output.
- Datasets and TSO commands from REXXREXX becomes really useful when it talks to z/OS: allocating datasets, reading and writing records with EXECIO, running TSO commands and capturing their output, and running all…
- ISPF edit macros and error handlingREXX can drive ISPF itself. Edit macros automate changes inside the editor, ISPF services let execs show panels and work with libraries, and proper error handling makes your…
Track your progress and earn a certificate.
Free account, 80 quiz questions for this subject.