Down to Earth Rexx
, by Schindler, William F.Note: Supplemental materials are not guaranteed with Rental or Used book purchases.
- ISBN: 9780967759005 | 0967759005
- Cover: Paperback
- Copyright: 5/1/2000
Getting Started | p. 1 |
History of REXX | p. 1 |
Benefits of Using REXX | p. 2 |
Ease of use | p. 2 |
Built-in functions | p. 2 |
It comes free with OS/2 | p. 2 |
It can easily customize and extend OS/2 | p. 3 |
Comparing REXX Programs to Batch Files | p. 3 |
Preparation | p. 3 |
Developing REXX Programs | p. 4 |
Design | p. 5 |
Code | p. 6 |
Test and Debug | p. 6 |
Writing Your First REXX Program | p. 6 |
Entering and Running HELLO.CMD | p. 7 |
Understanding Errors | p. 7 |
Summary | p. 9 |
QandA | p. 9 |
Workshop | p. 10 |
Quiz | p. 10 |
Exercises | p. 10 |
REXX Ground Rules | p. 13 |
A Simple REXX Program | p. 13 |
Structure of a REXX Program | p. 14 |
Program Comments (Lines 1, 3, 15) | p. 14 |
Instructions (Lines 3-9, 11, 15, 18-21) | p. 16 |
A Procedure (Lines 18-21) | p. 17 |
Commands (Line 13) | p. 19 |
Indenting, Formatting, and Style | p. 19 |
Entering and Running the Program | p. 20 |
Summary | p. 21 |
QandA | p. 21 |
Workshop | p. 22 |
Quiz | p. 22 |
Exercises | p. 22 |
Variables and Constants | p. 25 |
Using Computer Memory | p. 25 |
Strings | p. 27 |
Syntax: Strings | p. 27 |
Numbers | p. 28 |
Variables | p. 29 |
Variable Names | p. 29 |
Creating Variable Names | p. 31 |
Types of Data | p. 31 |
Syntax: The Datatype Function | p. 32 |
Using Datatype | p. 34 |
Summary | p. 36 |
QandA | p. 37 |
Workshop | p. 37 |
Quiz | p. 37 |
Exercises | p. 38 |
Instructions, Expressions, and Operators | p. 41 |
Instructions and Expressions | p. 41 |
Keyword Instructions | p. 42 |
Clauses | p. 43 |
Expressions | p. 45 |
Operators | p. 45 |
Putting It All Together | p. 46 |
Assignments | p. 47 |
Syntax: Assignment | p. 47 |
Labels | p. 48 |
Summary | p. 50 |
QandA | p. 50 |
Workshop | p. 51 |
Quiz | p. 51 |
Exercises | p. 51 |
Arithmetic | p. 53 |
Arithmetic Operators | p. 53 |
Addition | p. 54 |
Subtraction | p. 55 |
Negation | p. 55 |
Multiplication | p. 56 |
Division | p. 56 |
Power | p. 58 |
Order of Evaluation | p. 58 |
Summary | p. 62 |
QandA | p. 62 |
Workshop | p. 63 |
Quiz | p. 63 |
Exercises | p. 64 |
Executing System Commands | p. 67 |
Accessing OS/2's Commands | p. 67 |
Using Variables with Commands | p. 69 |
Replacing Commands with REXX Instructions | p. 70 |
The Directory Function | p. 70 |
Syntax: The Directory Function | p. 70 |
The SAY Instruction | p. 71 |
The SetLocal and EndLocal Functions | p. 71 |
The PULL Instruction | p. 72 |
Converting Existing Batch Files | p. 73 |
Return Codes | p. 78 |
Generating a Return Code | p. 80 |
Summary | p. 80 |
QandA | p. 81 |
Workshop | p. 81 |
Quiz | p. 81 |
Exercises | p. 82 |
Basic Input/Output | p. 83 |
Displaying Text and Numbers | p. 83 |
Formatting Numbers | p. 86 |
Syntax: The Format Function | p. 86 |
Getting Input | p. 89 |
The PULL Instruction | p. 89 |
The ARG Instruction | p. 91 |
Usage and Help Messages | p. 92 |
Summary | p. 94 |
QandA | p. 95 |
Workshop | p. 95 |
Quiz | p. 95 |
Exercises | p. 96 |
Getting Started | p. 99 |
Making Decisions | p. 105 |
Program Control | p. 105 |
Using Relational and Logical Operators | p. 107 |
Logical Operators | p. 109 |
Relational and Logical Operator Precedence | p. 111 |
The IF Instruction | p. 112 |
Nesting IF Instructions | p. 113 |
Formatting and Style Using IF | p. 113 |
The ELSE Instruction | p. 114 |
Nesting With the ELSE Instruction | p. 115 |
Syntax: The IF ... THEN ... ELSE Instruction | p. 118 |
Grouping Instructions | p. 118 |
The SELECT Instruction | p. 121 |
Syntax: The SELECT Instruction | p. 124 |
Summary | p. 125 |
QandA | p. 125 |
Workshop | p. 126 |
Quiz | p. 126 |
Exercises | p. 126 |
Manipulating Strings | p. 129 |
Getting the Length | p. 129 |
Making Conversions | p. 131 |
Using the Translate Function | p. 131 |
Syntax: The Translate Function | p. 132 |
Using the Strip Function | p. 134 |
Using the Reverse Function | p. 134 |
Decimal and Hexadecimal Conversions | p. 134 |
Concatenation | p. 136 |
Using Relational Operators with Strings | p. 137 |
A Last Word On Operator Precedence | p. 141 |
Cutting Strings | p. 141 |
Character-Based Substrings | p. 141 |
Word-Based Substrings | p. 142 |
Using the Substring Functions | p. 143 |
Searching | p. 144 |
Parsing Strings | p. 145 |
Summary | p. 150 |
QandA | p. 150 |
Workshop | p. 151 |
Quiz | p. 151 |
Exercises | p. 151 |
Testing and Debugging | p. 153 |
Techniques and Tools | p. 153 |
Testing | p. 154 |
Fertile Areas for Testing | p. 155 |
The TRACE Instruction | p. 156 |
Trapping Errors with SIGNAL | p. 160 |
Syntax Trapping as a Programming Aid | p. 164 |
Using PMREXX | p. 166 |
Summary | p. 167 |
QandA | p. 168 |
Workshop | p. 168 |
Quiz | p. 168 |
Exercises | p. 169 |
Using Loops | p. 171 |
Repeating a Group of Instructions | p. 171 |
Types of Loops | p. 171 |
A Basic Loop | p. 174 |
Using WHILE and UNTIL | p. 175 |
Counting Through a Loop | p. 177 |
Infinite Loops | p. 179 |
Exiting and Continuing Loops | p. 182 |
DO Instruction | p. 183 |
Syntax: The DO Instruction | p. 183 |
Summary | p. 187 |
QandA | p. 188 |
Workshop | p. 188 |
Quiz | p. 188 |
Exercises | p. 189 |
Compound Variables | p. 191 |
Introducing Compound Symbols | p. 191 |
Arrays | p. 193 |
Multi-dimensional Arrays | p. 196 |
Structures | p. 197 |
Arrays and Structures | p. 198 |
Associative Memory | p. 199 |
Summary | p. 204 |
QandA | p. 205 |
Workshop | p. 205 |
Quiz | p. 205 |
Exercises | p. 205 |
Dealing with User Input | p. 207 |
Prompts and Arguments | p. 207 |
Help and Hand Holding | p. 209 |
Using Sound | p. 210 |
Using Color | p. 211 |
Using Arguments | p. 215 |
Checking Input | p. 217 |
Defensive Programming | p. 220 |
Summary | p. 221 |
QandA | p. 222 |
Workshop | p. 222 |
Quiz | p. 222 |
Exercises | p. 223 |
Using Subroutines | p. 225 |
Introducing Subroutines | p. 225 |
Using Arguments | p. 228 |
Syntax: The CALL Instruction | p. 230 |
Designing For Subroutines | p. 231 |
Creating Your Own Subroutines | p. 231 |
Controlling Visibility | p. 232 |
Functions | p. 236 |
Using Recursion | p. 238 |
External REXX Procedures | p. 241 |
Procedure Search Order | p. 242 |
Summary | p. 244 |
QandA | p. 244 |
Workshop | p. 244 |
Quiz | p. 244 |
Exercises | p. 245 |
Intermediate Skills | p. 247 |
File Input/Output | p. 259 |
Introducing Input/Output Streams | p. 259 |
Reading and Writing Lines | p. 260 |
Reading and Writing Characters | p. 265 |
The STREAM Function | p. 271 |
Accessing Other Devices | p. 272 |
Techniques | p. 276 |
Trapping Input and Output Errors | p. 277 |
Creating Filters | p. 279 |
Printing | p. 280 |
Summary | p. 283 |
QandA | p. 283 |
Workshop | p. 284 |
Quiz | p. 284 |
Exercises | p. 284 |
Introducing RexxUtil Functions | p. 287 |
RexxUtil and Other External Libraries | p. 287 |
Registering External Functions | p. 288 |
A Simple Menu | p. 290 |
Processing Individual Keys | p. 290 |
Positioning and Hiding the Cursor | p. 293 |
Creating the Menu | p. 294 |
Creating A User Input Dialog | p. 300 |
Summary | p. 305 |
QandA | p. 305 |
Workshop | p. 306 |
Quiz | p. 306 |
Exercises | p. 307 |
More RexxUtil Functions | p. 309 |
Drives, Directories, and Files | p. 309 |
Getting Information About Drives | p. 310 |
Making and Removing Directories | p. 312 |
Getting Directory Listings | p. 313 |
Searching for Text in Files | p. 316 |
Deleting Files | p. 318 |
Extended Attributes | p. 320 |
Accessing and Modifying INI Files | p. 330 |
Summary | p. 333 |
QandA | p. 333 |
Workshop | p. 334 |
Quiz | p. 334 |
Exercises | p. 334 |
Creating Workplace Shell Objects | p. 337 |
Types of WPS Objects | p. 337 |
Creating Font Palettes and Color Palettes | p. 343 |
Creating Folders | p. 346 |
Creating Shadows | p. 350 |
Creating Program Objects | p. 352 |
Summary | p. 356 |
QandA | p. 356 |
Workshop | p. 357 |
Quiz | p. 357 |
Exercises | p. 358 |
Manipulating Workplace Shell Objects | p. 359 |
Deleting an Object | p. 359 |
Enumerating WPS Objects | p. 360 |
Finding Folders and the Desktop | p. 360 |
Getting a List of Objects IDs | p. 363 |
Open on Command | p. 370 |
Updating Settings | p. 373 |
Icons and Backgrounds | p. 374 |
Summary | p. 377 |
QandA | p. 378 |
Workshop | p. 378 |
Quiz | p. 378 |
Exercises | p. 378 |
Extending OS/2 Applications | p. 379 |
REXX as a Macro Language | p. 379 |
Extending the Enhanced Editor | p. 383 |
Introducing EPM REXX Macros | p. 383 |
Writing an EPM REXX Macro | p. 387 |
Processing and Defining Keys | p. 390 |
Creating Menus | p. 397 |
Using the Mouse | p. 399 |
Creating a Profile | p. 403 |
Summary | p. 403 |
QandA | p. 403 |
Workshop | p. 403 |
Quiz | p. 403 |
Exercises | p. 404 |
Interprocess Communications | p. 405 |
Files as Semaphores | p. 405 |
Named Pipes | p. 409 |
Queues | p. 411 |
Syntax: The RxQueue Function | p. 414 |
Summary | p. 418 |
QandA | p. 418 |
Workshop | p. 418 |
Quiz | p. 418 |
Exercises | p. 419 |
Wrapping Up | p. 421 |
Standard Workplace Shell Objects | p. 435 |
Key Codes Returned by SysGetKey | p. 443 |
Key Codes for the Main Keyboard | p. 443 |
Key Codes for the Function Keys | p. 446 |
Key Codes for the Cursor Pad | p. 447 |
Key Codes for the Numeric Keypad | p. 447 |
Answers | p. 451 |
REXX Keyword and Function Reference | p. 481 |
Table of Contents provided by Syndetics. All Rights Reserved. |
What is included with this book?
The New copy of this book will include any supplemental materials advertised. Please check the title of the book to determine if it should include any access cards, study guides, lab manuals, CDs, etc.
The Used, Rental and eBook copies of this book are not guaranteed to include any supplemental materials. Typically, only the book itself is included. This is true even if the title states it includes any access cards, study guides, lab manuals, CDs, etc.