Introduction
to REXX Programming
Overview
This 2 day course is designed to give the delegates an
introduction to the REXX programming language. It
will provide them with knowledge required to write,
test and execute progressively more difficult REXX Programs on VM. The
course is a mix of lectures and practical exercises.
For programmers who are new to REXX this course
should be taught in conjunction with the CMS
Pipelines Class which covers I/O on the VM System.
Pre-requisites
An understanding of structured programming
techniques is useful.
Audience
Staff who would like to automate repetitive tasks
on VM.
Student
Numbers
The maximum recommended student to instructor
ratio is 12:1
Objectives
By the end of the course, the delegates will be
able, with the aid of course notes to:
-
Code REXX Execs, using loops, if/else statements
and subroutines.
-
Debug Execs using the REXX Trace facility.
-
Pass arguments into an Exec from the command
line, or pull information from the user.
-
Use REXX functions to process data and
variables.
Course
Outline
| Introduction |
|
Introduction
to the Exec languages and REXX |
| Variables |
|
Declaring
Variables
Assigning values to a variable |
| Tracing |
|
The
REXX Trace facility
Interactive Trace |
| Output |
|
Output
to the Screen
Screen Alignment using left/right/centre |
| Arguments |
|
How
an Exec ask a question - using Pull
Accepting arguments
Introducing parse |
| Program
Structure |
|
if
statement
subroutines
checking conditions
looping
The Case structure |
| REXX
Functions |
|
Introduction
to Functions
Nested functions
The right function for the job |
| Miscellaneous |
|
The
Stack- Pushing & Pulling
STATE
command
Array processing
Parsing data
Interfacing with XEDIT macros (if required) |
back
to top