IBM AS/400 Frozen Dessert Maker User Manual


 
Displaying Attributes of a Field ........................... 210
Equating a Name with a Field, Expression, or Command ............ 210
Source Debug National Language Support for ILE RPG ............ 211
Sample Source for Debug Examples ....................... 211
Chapter 12. Handling Exceptions . . . . . . . . . . . . . . . . . . . . . . . . 217
Exception Handling Overview ............................ 217
ILE RPG Exception Handling .......................... 220
Using Exception Handlers .............................. 223
Exception Handler Priority ............................ 223
Nested Exceptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 223
Unhandled Exceptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 223
Optimization Considerations . . . . . . . . . . . . . . . . . . . . . . . . . . . 226
Using RPG-Specific Handlers ............................ 226
Specifying Error Indicators or the 'E' Operation Code Extender ...... 227
Using an Error Subroutine ............................ 228
Specifying a Return Point in the ENDSR Operation ............. 237
ILE Condition Handlers ............................... 238
Using a Condition Handler ............................ 238
Using Cancel Handlers ............................... 244
Problems when ILE CL Monitors for Notify and Status Messages ....... 247
Chapter 13. Obtaining a Dump ......................... 251
Obtaining an ILE RPG Formatted Dump ..................... 251
Using the DUMP Operation Code ......................... 251
Example of a Formatted Dump ........................... 252
Working with Files and Devices ................................... 259
Chapter 14. Defining Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . 261
Associating Files with Input/Output Devices ................... 261
Naming Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 263
Types of File Descriptions .............................. 263
Using Files with External-Description as Program-Described ........ 264
Example of Some Typical Relationships between Programs and Files .. 264
Defining Externally Described Files ........................ 265
Renaming Record-Format Names ....................... 266
Renaming Field Names ............................. 266
Ignoring Record Formats ............................. 266
Using Input Specifications to Modify an External Description ........ 267
Using Output Specifications ........................... 269
Level Checking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 270
Defining Program-Described Files ......................... 271
Data Management Operations and ILE RPG I/O Operations .......... 271
Chapter 15. General File Considerations ................... 273
Overriding and Redirecting File Input and Output ................ 273
Example of Redirecting File Input and Output ................. 274
File Locking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 275
Record Locking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 276
Sharing an Open Data Path ............................. 277
Spooling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 278
Output Spooling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 279
Contents vii