| Oakwood Computing Ltd 1 Dornton Road South Croydon Surrey CR2 7DR UK Tel: +44 (0) 20 8686 7266 courses@oakwoodcomputing.co.uk |
| Updated 11 November, 2003 |
Contents: Top
Objectives
Introduction to REXX
Concepts, facilities, syntax; how an EXEC/procedure is interpreted, REXX compilation;
variable names, assigning values; comparisons, arithmetic and boolean expressions;
stem variables; built-in functions, translation; SYSVAR function; conversing
with screen: SAY, PULL; external environments, ADDRESS, TSO, MVS, ISPEXEC,
ISREDIT, LU62, LINKMVS, etc., SUBCOM; testing options, TRACE, EXECUTIL; accessing
DB2, DSNREXX.
Sequence control
DO loops, conditional loops, DO FOREVER, LEAVE, ITERATE, IF .. THEN .. ELSE,
SELECT, NOP, EXIT, SIGNAL, subroutines, CALL, passing parameters, ARG, RETURN.
Further REXX facilities
File
handling, EXECIO with stack or stem variables;
using the program stack, PUSH, PULL, QUEUE, PARSE EXTERNAL; using buffers
on the stack; creating and manipulating extra stacks; useful TSO commands:
allocate, free, LISTDSI; MVSVAR; capturing TSO output using OUTTRAP; PARSE,
place holders, text handling; executing in batch (both non-TSO and IKJEFT01).
Edit macros
ISREDIT environment, invoking a macro, passing parameters to a macro from
the terminal, passing data between macros and EXECs; assigning macro values
to REXX variables; edit commands; accessing system information: DATASET, MEMBER,
etc.; editing all members of a library.
Library Management
Processing a library: LMINIT, LMOPEN, LMCLOSE, LMFREE; processing members
of a library: LMMLIST etc.; processing a dataset list: LMDINIT, LMDLIST, LMDDISP,
LMDFREE, saving the list to a file.