Mainframe Training Overview
This course teaches the concepts and programming for REXX (Reconstructed EXtended eXecutor) language for the TSO environment
The course covers the concepts and development of REXX Execs (executable code modules)
The course is a combination of lecture, discussion and hands-on workshop sessions
Learning Objectives
Upon successful completion Students will be able to:
- Create and allocate REXX libraries
- Invoke REXX execs and pass parameters to them
- Use REXX instructions to perform terminal I/O
- Perform arithmetic calculations and character operations
- Use such REXX programming constructs as:
- IF statements
- SELECT-WHEN constructs
- DO-WHILE and iterative DO loop sequences
- Debug REXX execs via the TRACE facility
- Issue TSO commands from REXX execs
- Trap TSO command output and process the output in the REXX exec
- Code user developed REXX subroutines and functions
Mainframe Training Audience
This course is for experienced application developers must understand and use REXX as a tool for software development and write REXX execs.
Mainframe Training Prerequisites
Experience with at least one programming language is highly recommended. At least 6 month of experience with TSO/ISPF is required. Experience writing TSO CLISTs will be helpful, but, not needed.
Mainframe Training Course duration
3 days
Mainframe Training Course outline
DAY 1
1. What is REXX?
- Developing REXX Execs
- Allocating SYSPROC/SYSEXEC
- Designating a User Exec Library
2. REXX Language Syntax
- Statement Types
- Statement Syntax
- Comments
- SAY Statement
- PULL Statement
- ARG Statement
- IF-THEN-ELSE Sequence
- DO Groups
- SELECT-WHEN Sequence
- Iterative DO Groups
DAY 2
3. Using REXX Functions
- Introduction
- Data Function - FORMAT, TRUNC, MAX, MIN, ABS, RANDOM
- Character Functions - LENGTH, SUBSTR, LEFT, RIGHT, POS, LASTPOS, DATATYPE, VERIFY, STRIP, TRANSLATE
- Word Functions - WORDS, WORD, WORDLENGTH, WORDINDEX, SUBWORD, WORDPOS
- Information Functions - DATE, TIME, USERID
4. Debugging REXX
- Execution Errors
- TRACE Statement
- Interactive Tracing
- EXECUTIL Command
- Attention Mode
- Condition Traps
DAY 3
5. User-Defined Subroutines and Functions
- Subroutines
- User-Defined Functions
- External Subroutines and Functions
6. TSO/E Processing in REXX
- TSO Command Processing
- Using REXX Variables -, SYSVAR, MVSVAR, MSG, PROMPT, SYSDSN, LISTDSI Format
- OUTTRAP
Appendices
- A. REXX Language Support in DB2
- B. REXX Support for MVS Operator Commands
- C. Sample REXX Compiler Output
- D. Available REXX Functions
- E. Available TSO/E Commands
- F. Edit Macro Keyphrase Names
- G. Solutions to Lab Exercises
|