IBM AS-400 manual

Summary of contents

  • Contents
  • Notices
    • Programming Interface Information
    • Trademarks and Service Marks
  • About This Guide
    • Who Should Use This Guide
    • Prerequisite and Related Information
    • How to Send Your Comments
    • What's New This Release?
  • ILE RPG Introduction
    • Chapter 1. Overview of the RPG IV Programming Language
      • RPG IV Specifications
      • Cycle Programming
      • Indicators
      • Operation Codes
      • Example of an ILE RPG Program
      • Using the OS/400 System
      • AS/400 Tools
    • Chapter 2. RPG Programming in ILE
      • Program Creation
      • Program Management
      • Program Call
      • Source Debugging
      • Bindable APIs
      • Multithreaded Applications
    • Chapter 3. Program Creation Strategies
      • Strategy 1: OPM-Compatible Application
      • Strategy 2: ILE Program Using CRTBNDRPG
      • Strategy 3: ILE Application Using CRTRPGMOD
    • Chapter 4. Creating an Application Using Multiple Procedures
      • A Multiple Procedures Module — Overview
      • Example of Module with Multiple Procedures
      • Coding Considerations
      • For Further Information
      • Creating and Running an ILE RPG Application
    • Chapter 5. Entering Source Statements
    • Chapter 6. Creating a Program with the CRTBNDRPG
      • Using the CRTBNDRPG Command
      • Using a Compiler Listing
      • Accessing the RETURNCODE Data Area
    • Chapter 7. Creating a Program with the CRTRPGMOD and CRTPGM Commands
      • Creating a Module Object
      • Binding Modules into a Program
      • Using a Binder Listing
      • Changing a Module or Program
    • Chapter 8. Creating a Service Program
      • Service Program Overview
      • Strategies for Creating Service Programs
      • Creating a Service Program Using CRTSRVPGM
      • Sample Service Program
    • Chapter 9. Running a Program
      • Running a Program Using the CL CALL Command
      • Running a Program From a Menu-Driven Application
      • Running a Program Using a User-Created Command
      • Replying to Run-Time Inquiry Messages
      • Ending an ILE Program
      • Managing Activation Groups
      • Managing Dynamically-Allocated Storage
    • Chapter 10. Calling Programs and Procedures
      • Program/Procedure Call Overview
      • Using a Prototyped Call
      • Passing Prototyped Parameters
      • Interlanguage Calling Considerations
      • Using the Fixed-Form Call Operations
      • Returning from a Called Program or Procedure
      • Using Bindable APIs
      • Calling a Graphics Routine
      • Calling Special Routines
      • Multithreading Considerations
      • Debugging and Exception Handling
    • Chapter 11. Debugging Programs
      • The ILE Source Debugger
      • Preparing a Program for Debugging
      • Starting the ILE Source Debugger
      • Adding/Removing Programs from a Debug Session
      • Viewing the Program Source
      • Setting and Removing Breakpoints
      • Setting and Removing Watch Conditions
      • Example of Setting a Watch Condition
      • Stepping Through the Program Object
      • Changing the Value of Fields
      • Displaying Attributes of a Field
      • Equating a Name with a Field, Expression, or Command
      • Source Debug National Language Support for ILE RPG
      • Sample Source for Debug Examples
    • Chapter 12. Handling Exceptions
      • Exception Handling Overview
      • Using Exception Handlers
      • Using RPG-Specific Handlers
      • ILE Condition Handlers
      • Using Cancel Handlers
      • Problems when ILE CL Monitors for Notify and Status Messages
    • Chapter 13. Obtaining a Dump
      • Obtaining an ILE RPG Formatted Dump
      • Using the DUMP Operation Code
      • Example of a Formatted Dump
      • Working with Files and Devices
    • Chapter 14. Defining Files
      • Associating Files with Input/Output Devices
      • Naming Files
      • Types of File Descriptions
      • Defining Externally Described Files
      • Defining Program-Described Files
      • Data Management Operations and ILE RPG I/O Operations
    • Chapter 15. General File Considerations
      • Overriding and Redirecting File Input and Output
      • File Locking
      • Record Locking
      • Sharing an Open Data Path
      • Spooling
      • SRTSEQ/ALTSEQ in an RPG Program versus a DDS File
    • Chapter 16. Accessing Database Files
      • Database Files
      • Using Externally Described Disk Files
      • Using Program-Described Disk Files
      • Methods for Processing Disk Files
      • Valid File Operations
      • Using Commitment Control
      • DDM Files
    • Chapter 17. Accessing Externally Attached Devices
      • Types of Device Files
      • Accessing Printer Devices
      • Accessing Tape Devices
      • Accessing Display Devices
      • Using Sequential Files
      • Using SPECIAL Files
    • Chapter 18. Using WORKSTN Files
      • Intersystem Communications Function
      • Using Externally Described WORKSTN Files
      • Using Program-Described WORKSTN Files
      • Valid WORKSTN File Operations
      • Multiple-Device Files
    • Chapter 19. Example of an Interactive Application
      • Database Physical File
      • Main Menu Inquiry
      • File Maintenance
      • Search by Zip Code
      • Search and Inquiry by Name
    • Appendixes
    • Appendix A. Behavioral Differences Between OPM RPG/400 and ILE RPG for AS/400
      • Compiling
      • Running
      • Debugging and Exception Handling
      • I/O
      • DBCS Data in Character Fields
    • Appendix B. Using the RPG III to RPG IV Conversion Aid
      • Conversion Overview
      • Converting Your Source
      • Example of Source Conversion
      • Analyzing Your Conversion
      • Resolving Conversion Problems
    • Appendix C. The Create Commands
      • Using CL Commands
      • CRTBNDRPG Command
      • CRTRPGMOD Command
    • Appendix D. Compiler Listings
      • Reading a Compiler Listing
    • Bibliography
    • Index
      • Special Characters
      • Numerics
      • A
      • B
      • C
      • D
      • E
      • F
      • G
      • H
      • I
      • J
      • K
      • L
      • M
      • N
      • O
      • P
      • Q
      • R
      • S
      • T
      • U
      • V
      • W
pdf background image
download button

Related manuals