GT09 - REXX Programming Workshop - 3 Days

Course Description


Customisation

For on-site courses (i.e. at your premises), we are more than happy to tailor the course agenda to suit your exact requirements. In many cases, we are able to build your in-house standards and naming conventions into the delivered course.


Course Details

Introduction
What Is REXX?
Simple Examples
Building REXX Programs

Program Execution
On-Line Execution Of REXX Programs
System Definition Of REXX Programs
Dynamic Concatenation Of REXX Datasets
Batch Execution Of REXX Programs

Getting Started
Commencing A REXX Program - Comments
Terminating A REXX Program - Exit
Variables
Assigning Values To Variables
Use Of Quotation Marks
Compound Or Stem Variables (Arrays)
Re-Initialising Variables - Drop
Concatenating Variables
Sending Data To The Terminal - Say
Receiving Data From The Terminal - Pull
Statement Continuation
Variables And Arithmetic
Evaluation Sequence
Numbers Supported
Altering Precision
Altering Precision For Comparisons
Interpret

Text Parsing
Parsing Words Separated By Spaces
Parsing Words Separated By A Given String
Parsing Words By Specific Columns
Disregarding Portions Of A String
Parsing Instructions Summary
Splitting Data Using Arg

Program Flow And Control
Conditional Testing Variables - If / Then / Else
Nested If Statements
The Select Statement
Comparison Operators
Combining Comparisons - Logical Operators
Program Loops
Do
Do Forever
Do While
Do Until
Loop Summary
Iterate and Leave
Using Leave / Iterate Within Nested Loops
Interrupting Endless Loops

Subroutines
Passing Data to Subroutines
Sending Arguments To Subroutines
Receiving Arguments Into Subroutines
Receiving Arguments Into Main Line Programs
Sharing And Protecting Internal Variables
Returning Data To The Calling Program
Label Look-Aside Table

Functions
Built-in Function Summary
Abbrev
Abs
Address
Arg
B2X
C2D
C2X
Center
Compare
Copies
D2C
D2X
Datatype
Date
Delstr
Delword
Find
Format
Index
Insert
Justify
Lastpos
Left
Length
Listdsi
Max
Min
Msg
Outtrap
Overlay
Pos
Random
Reverse
Right
Sign
Space
Strip
Substr
Subword
Sysdsn
Sysvar
Time
Translate
Trunc
Upper
Userid
Verify
Word
Wordindex
Wordlength
Wordpos
Words
X2B
X2C
X2D

User Defined Functions
Subroutine / Function Search Order

The Data Stack
Datastack Manipulation
Queuing
Stacking
NEWSTACK And DELSTACK
MAKEBUF And DROPBUF
Data Stack Query Commands

External Commands
Executing TSO Commands
The Address Command
Allocating Datasets
Freeing Datasets
Execio - Reading And Writing To Files
Execio - Return Codes
Reading Records Into A Compound Variable
Writing Records From A Compound Variable
Reading Records Into The Data Stack
Writing Records From The Data Stack
Appending Data To A File
Copying A Dataset
Deleting And Renaming Datasets
Clearing The Screen
Editing And Browsing A Dataset
Suppression Of System Messages
TSO Command Reference Summary

Program Testing
Trapping Errors
Signal And Call
Trace
ISPF Dialog Testing


Course Enquiry