Programming in REXX
Title Programming in REXX
Author Charles Daney
(see EMail Addresses)
Publisher McGraw Hill
Edition April 1992
Price $45.00
ISBN 0-07-015305-1
Language English
Type Book, 300 pages
Source Bookstore
Table of contents:
- Introduction
- What REXX is
- The Application Programming Interface
- The REXX Standardization Process
- Getting Started
Language
Overview
- Getting Started
- Putting the Elements Together
- Program Structure
- The REXX Data Model
- Scope of Variables
- String Manipulation and Parsing
- Other Features of REXX
Program
Structure and Syntax
- Program Format
- Clauses and Statements
- More about Clauses
- Tokenization of Statements
- REXX Expressions
- Clause Type Recognition Rules
- Character String Operators
- Arithmetic Operators
- Logical Operators
- Operator Precedence
- Numbers and Arithmetic in REXX
- REXX Variables
Control
Structures
- Selection Structures
- Looping Structures
- The SIGNAL Instruction
Subroutines
and Functions
- Built-In, Internal, and External Procedures
- Passing Arguments and Returning Values
- Scope of Variables
- Execution State Preserved around Procedure Calls
Commands
to External Environments
- The ADDRESS Instruction
- Command Return Codes
Character
String Handling
- String Handling Built-in Functions
- String-oriented Functions
- Word-oriented Functions
- Other String Manipulation Functions
The
PARSE Instruction
- Sources of Input to PARSE
- PARSE Templates: Simplest Case
- Patter Matching in Templates
- Positional Patterns in Templates
- Variable Patterns
- Parsing Procedure Arguments
- PARSE in Relation to Other Forms of String Manipulation
- Practical Examples of Parsing
Input
and Output
- Character-oriented vs. Line-oriented I/O
- Opening a file
- File Read/Write Pointers
- Closing a File
- Line-oriented File I/O Functions
- Character-oriented File I/O Functions
- Communication with the User
- Example: Binary Search of Sorted Files
- Example: Making a File Index
- Example: Writing "Filters" in REXX
The
External Data Queue
- Usage of the Queue
- Relation of the External Data Queue and the Standard
Input Stream
- Relation of the External Data Queue and the Operating
System
Exception
Handling
- Enabling and Disabling Condition Handling
- Using Type 1 Condition Handlers
- Using Type 2 Condition Handlers
- The Condition() Function
The
INTERPRET Instruction
- Rules for INTERPRET
- Examples of INTERPRET Usage
REXX
Arithmetic
- Precision of Arithmetic
- Arithmetic Operations
- Exponential Representation
- Whole Numbers
- Arguments to Built-In Functions
- Built-In Functions for Numeric Formatting and Arithmetic
- Additional Mathematical Functions