About the Authors. Preface

Similar documents
Preface to the Second Edition... xi A Note About Source Entry... xi

Table of Contents at a Glance

Contents. Acknowledgments Introduction

SAP' ABAP. Handbook. Kogent Learning Solutions, Inc. Sudbury, Massachusetts JONES AND BARTLETT PUBLISHERS BOSTON TORONTO LONDON SINUAPORI:

CONTENTS. ... vii. ... xv The Old Standard xvi The New Standard xvi A Whole New Ball Game xvii e-rpg xviii INTRODUCTION

Contents. Acknowledgments

CONTENTS. INTRODUCTION xvii

544 Programming in RPG IV, Fourth Edition

Excel Programming with VBA (Macro Programming) 24 hours Getting Started

Using SQL & CURSORS In Your Programs

IBM ILE RPG Programmer. Download Full Version :

Table of Contents. Introduction... xxi

ощ 'ршорвшэш! цвн-эориэу ощ 'sajbpossv # PIPG DUJ 'ssjmoossv ^ PIPG pipa w н OX ЛЮН VAV

PROBLEM SOLVING WITH FORTRAN 90

Jim Buck Phone Twitter

"Charting the Course... MOC C: Querying Data with Transact-SQL. Course Summary

Acknowledgments Introduction. Chapter 1: Introduction to Access 2007 VBA 1. The Visual Basic Editor 18. Testing Phase 24

Oracle PLSQL. Course Summary. Duration. Objectives

foreword to the first edition preface xxi acknowledgments xxiii about this book xxv about the cover illustration

Ryan Stephens. Ron Plew Arie D. Jones. Sams Teach Yourself FIFTH EDITION. 800 East 96th Street, Indianapolis, Indiana, 46240

Boldface text or page numbers indicate illustrations.

Understanding the Concepts and Features of Macro Programming 1

INDEX. Note: boldface numbers indicate illustrations; (t) indicates a table. 257

Contents I Introduction 1 Introduction to PL/SQL iii

Learning C# 3.0. Jesse Liberty and Brian MacDonald O'REILLY. Beijing Cambridge Farnham Köln Sebastopol Taipei Tokyo

A Web-Based Introduction

Jim Buck Phone Twitter

CHAPTER 1: INTRODUCING C# 3

Pointers in C. A Hands on Approach. Naveen Toppo. Hrishikesh Dewan

Introduction to Computer Science and Business

SAP ABAP Training Course Content :

System i CGI Toolkits

Selenium Online Training Brochure

This course is designed for web developers that want to learn HTML5, CSS3, JavaScript and jquery.

Installing and Administering a Satellite Environment

Murach s Beginning Java with Eclipse

Contents. Figures. Tables. Examples. Foreword. Preface. 1 Basics of Java Programming 1. xix. xxi. xxiii. xxvii. xxix

Preface... (vii) CHAPTER 1 INTRODUCTION TO COMPUTERS

WITH C+ + William Ford University of the Pacific. William Topp University of the Pacific. Prentice Hall, Englewood Cliffs, New Jersey 07632

object/relational persistence What is persistence? 5

Delphi in Depth: FireDAC, Copyright 2017 Cary Jensen ISBN: ISBN-10: , ISBN-13: ,

CONTENTS. PART 1 Structured Programming 1. 1 Getting started 3. 2 Basic programming elements 17

Chapters are PDF documents posted online at the book s Companion Website (located at

Contents. part 1: ILE Basics...7. Acknowledgments...iv

Computer Programming C++ (wg) CCOs

Practical C++ Programming

"Charting the Course... MOC A Developing Data Access Solutions with Microsoft Visual Studio Course Summary

"Charting the Course... MOC A Introduction to Web Development with Microsoft Visual Studio Course Summary

Oracle BPM 10g R3 Programming 1 Essentials

INDEX. Note: Boldface numbers indicate illustrations 333

Contents Introduction 1

MPI: A Message-Passing Interface Standard

Chapters and Appendix F are PDF documents posted online at the book s Companion Website (located at

PRACTICAL SPEECH USER INTERFACE DESIGN

Adobe Experience Manager

"Charting the Course to Your Success!" MOC D Querying Microsoft SQL Server Course Summary

Contents. Introduction

Index. NOTE: Boldface numbers indicate illustrations or code listing; t indicates a table. 341

INDEX. A Absolute Value of Expression (%ABS), 26, 27 activation groups for database triggers, 257, 267, 279

Getting MEAN. with Mongo, Express, Angular, and Node SIMON HOLMES MANNING SHELTER ISLAND

PROCE55 Mobile: Web API App. Web API.

Introduction to Programming Using Java (98-388)

PYTHON PROGRAMMING. John M.Zelle. Wartburg College AN INTRODUCTION TO COMPUTER SCIENCE SECOND EDITION

SAP ABAP. Hands-On Test Projects with Business Scenarios. Sushil Markandeya. Kaushik Roy

COPYRIGHTED MATERIAL. Table of Contents. Foreword... xv. About This Book... xvii. About The Authors... xxiii. Guide To The Reader...

APPLICATION MODERNIZATION. Brian May IBM i Modernization Specialist

"Charting the Course... MOC C: Developing SQL Databases. Course Summary

Pro JavaScript. Development. Coding, Capabilities, and Tooling. Den Odell. Apress"

Oracle Database: Introduction to SQL/PLSQL Accelerated

Microsoft. Microsoft Visual C# Step by Step. John Sharp

"Charting the Course... MOC A Developing Microsoft SQL Server 2012 Databases. Course Summary

CERTIFICATE IN WEB PROGRAMMING

Digital VLSI Design with Verilog

II.1 Running a Crystal Report from Infoview

OracleAS 10g R3: Java Programming

Procedures and Parameters

brief contents PART 1 INTRODUCING WINDOWS PHONE... 1 PART 2 CORE WINDOWS PHONE... 57

Oracle Database 11g: SQL and PL/SQL Fundamentals

Contents. Excel 2013 Workbook... 1 Starting Excel The Startup Screen... 3 The Excel Screen... 4 Quick Access Toolbar...

Contents. Preface. Introduction. Introduction to C Programming

Whom Is This Book For?... xxiv How Is This Book Organized?... xxiv Additional Resources... xxvi

INTRODUCTION Background of the Problem Statement of the Problem Objectives of the Study Significance of the Study...

THINK LIKE CREATIVE PROBLEM SOLVING V. ANTON SPRAUL

VERIFICATION AND VALIDATION FOR QUALITY OF UML 2.0 MODELS

Facilities Manager Local Device Tracking

Learn Windows PowerShell 3 in a Month of Lunches

Application System/400 SX System/38-Compatible COBOL Reference Summary IBM

Object-Oriented Programming and Data Structures

An ILE Building Block

Brian May IBM i Modernization Specialist Profound Logic Software. Webmaster and Coordinator Young i Professionals

List of Figures. About the Authors. Acknowledgments

Oracle 10g: Java Programming

Acknowledgments...iii

COPYRIGHTED MATERIAL. Contents. Chapter 1: Introducing T-SQL and Data Management Systems 1. Chapter 2: SQL Server Fundamentals 23.

THINK LIKE CREATIVE PROBLEM SOLVING V. ANTON SPRAUL

CITY UNIVERSITY OF NEW YORK. Creating a New Project in IRBNet. i. After logging in, click Create New Project on left side of the page.

AO IBM i Advanced Modernization Workshop Curriculum

IBM i5 iseries RPG ILE Programmer. Download Full Version :

Oracle Database: SQL and PL/SQL Fundamentals NEW

"Charting the Course... Java Programming Language. Course Summary

Transcription:

Contents About the Authors Acknowledgments Preface iv v xv 1: Introduction to Programming and RPG 1 1.1. Chapter Overview 1 1.2. Programming 1 1.3. History of RPG 2 1.4. Program Variables 6 1.5. Libraries, Objects, and Data Files 7 1.6. Programming Specifications 10 1.7. The Program Development Cycle 13 1.8. Program Entry and Testing 16 1.9. Chapter Summary 18 1.10. Key Terms 20 1.11. Discussion/Review Questions 20 1.12. Exercises 21 2: Getting Started 23 2.1. Chapter Overview 23 2.2. The Sections of an ILE RPG Program 23 2.3. A Sample ILE RPG Program 25 2.4. Building the Program 39 2.5. Navigating Legacy Code 39 2.6. Free vs. Fixed 47 2.7. Internal Documentation 48 2.8. Chapter Summary 50

viii Programming in ILE RPG 2.9. Key Terms 51 2.10. Discussion/Review Questions 52 2.11. Exercises 53 3: Creating and Using Files 55 3.1. Chapter Overview 55 3.2. IBM i Database Concepts 55 3.3. Physical and Logical Files 56 3.4. SQL Database Concepts 57 3.5. SQL Development Tools 58 3.6. Creating Tables with SQL 61 3.7. Data Types and Data Storage 65 3.8. Creating Views with SQL 73 3.9. Creating Indexes with SQL 75 3.10. DDS Database Concepts 75 3.11. Externally Described Printer Files 82 3.12. Output Editing 85 3.13. Using a Field Reference File 87 3.14. Navigating Legacy Code 88 3.15. Chapter Summary 101 3.16. Key Terms 103 3.17. Discussion/Review Questions 104 3.18. Exercises 104 4: Using Declarations 107 4.1. Chapter Overview 107 4.2. Introducing Declarations 107 4.3. Declaring Files 108 4.4. Declaring Named Constants 113 4.5. Defining Standalone Variables 118 4.6. Assigning Initial Values to Data 122 4.7. Defining Data Structures 124 4.8. Using Like, Likeds, and Likerec 132 4.9. Navigating Legacy Code 136 4.10. Chapter Summary 141 4.11. Key Terms 143 4.12. Discussion/Review Questions 143 4.13. Exercises 144 5: Controlling Program Workflow 145 5.1. Chapter Overview 145

Contents ix 5.2. Structured Design 145 5.3. Relational Comparisons 146 5.4. Selection Operations 148 5.5. Iteration Operations 155 5.6. Loops and Early Exits 159 5.7. File Processing with Dow and Dou 160 5.8. Top-Down Design 161 5.9. Defining and Using Subroutines 162 5.10. Control Break Logic 164 5.11. Navigating Legacy Code 173 5.12. Chapter Summary 177 5.13. Key Terms 178 5.14. Discussion/Review Questions 178 5.15. Exercises 179 6: Using Arithmetic Operations and Functions 181 6.1. Chapter Overview 181 6.2. Simple Numeric Assignment 181 6.3. Assigning Values with Figurative Constants 182 6.4. Using Eval for Arithmetic 182 6.5. Numeric Overflow, Truncation, and Field Sizes 185 6.6. Rounding 188 6.7. Improving Eval Precision 189 6.8. Using Built-in Functions 190 6.9. Navigating Legacy Code 194 6.10. Chapter Summary 197 6.11. Key Terms 198 6.12. Discussion/Review Questions 198 6.13. Exercises 199 7: Processing Character Data 201 7.1. Chapter Overview 201 7.2. Simple Character Assignment 201 7.3. Concatenating Character Values 206 7.4. Using Variable-Length Character Variables 207 7.5. Using Built-in Functions with Character Data 209 7.6. Data-Conversion Functions 218 7.7. Retrieving Data Properties 222 7.8. Navigating Legacy Code 224 7.9. Chapter Summary 228 7.10. Key Terms 229

x Programming in ILE RPG 7.11. Discussion/Review Questions 230 7.12. Exercises 231 8: Working with Dates 233 8.1. Chapter Overview 233 8.2. Defining Date-Related Data 233 8.3. Understanding Date Formats 236 8.4. Simple Date Assignment 239 8.5. Simple Date Arithmetic 242 8.6. Using Built-in Functions with Dates 243 8.7. Navigating Legacy Code 252 8.8. Chapter Summary 255 8.9. Key Terms 256 8.10. Discussion/Review Questions 256 8.11. Exercises 257 9: Accessing and Updating Database Files 259 9.1. Chapter Overview 259 9.2. Sequential Access 259 9.3. Random Access 265 9.4. Using Composite Keys 267 9.5. Writing to Output Files 270 9.6. Update Files and I/O Operations 272 9.7. File and Record Locking 275 9.8. File Open and Close Considerations 276 9.9. Putting It All Together 278 9.10. Navigating Legacy Code 282 9.11. Chapter Summary 287 9.12. Key Terms 288 9.13. Discussion/Review Questions 289 9.14. Exercises 289 10: Processing Files Using SQL 291 10.1. Chapter Overview 291 10.2. SQL Data Manipulation Language (DML) 291 10.3. Introduction to Embedded SQL 294 10.4. Exec SQL 294 10.5. Using Host Variables 295 10.6. Handling SQL Return Codes 300 10.7. Using SQL Cursors 303 10.8. Building Dynamic SQL Statements 308

Contents xi 10.9. Set Option 312 10.10. Creating SQLRPGLE Programs 313 10.11. Putting It All Together 314 10.12. Navigating Legacy Code 317 10.13. Chapter Summary 318 10.14. Key Terms 320 10.15. Discussion/Review Questions 320 10.16. Exercises 320 11: Using Arrays 323 11.1. Chapter Overview 323 11.2. Representing Tables of Data 323 11.3. Arrays 324 11.4. Runtime Arrays and Data Structures 325 11.5. Runtime Arrays and Externally Described Files 329 11.6. Compile-Time Arrays 331 11.7. Defining Related Arrays 334 11.8. Arrays and Indexing 336 11.9. Calculations with Arrays 337 11.10. Using Arrays with SQL 350 11.11. Array Data Structures and Multidimensional Arrays 353 11.12. Array Keys 354 11.13. Navigating Legacy Code 355 11.14. Chapter Summary 368 11.15 Key Terms 369 11.16. Discussion/Review Questions 369 11.17. Exercises 370 12: Writing Interactive Applications 373 12.1. Chapter Overview 373 12.2. Batch and Interactive Programs 373 12.3. Display Files 374 12.4. Declaring Display Files 378 12.5. Performing Screen I/O 379 12.6. Using an Indicator Data Structure 380 12.7. Basic Interactive Inquiry Program 381 12.8. Additional DDS Considerations 382 12.9. Interactive File Maintenance 391 12.10. Screen Design and CUA 400 12.11. Chapter Summary 400 12.12. Key Terms 402

xii Programming in ILE RPG 12.13. Discussion/Review Questions 402 12.14. Exercises 403 13: Calling Programs and Passing Parameters 405 13.1. Chapter Overview 405 13.2. Modular Programming 405 13.3. Prototyping the Call Interface 407 13.4. Callp (Call a Prototyped Procedure or Program) 409 13.5. The Procedure Interface 410 13.6. Passing Parameters and Changing Values 412 13.7. Return and *Inlr 416 13.8. Fitting the Pieces 418 13.9. Using a Modular Approach 420 13.10. Data Areas 421 13.11. Navigating Legacy Code 424 13.12. Putting It All Together 428 13.13. Chapter Summary 434 13.14. Key Terms 435 13.15. Discussion/Review Questions 435 13.16. Exercises 436 14: Building Modular Programs with Procedures 437 14.1. Chapter Overview 437 14.2. Dynamic Program Calls and Static Binding 437 14.3. Introduction to Procedures 438 14.4. Cycle Main Programs 443 14.5. Linear Main Programs 446 14.6. Nomain Modules 449 14.7. Creating Modular Programs 451 14.8. Passing Parameters by Value 457 14.9. File I/O and Subprocedures 459 14.10. Using /Copy, /Include 460 14.11. Conditional Compiler Directives 461 14.12. Navigating Legacy Code 463 14.13. Chapter Summary 464 14.14. Key Terms 466 14.15. Discussion/Review Questions 466 14.16. Exercises 467 15: Building and Using Service Programs 469 15.1. Chapter Overview 469

Contents xiii 15.2. Introduction to Service Programs 469 15.3. Compiling and Binding Service Programs 470 15.4. Deploying Service Programs in an Application 471 15.5. Maintaining Service Programs 475 15.6. Understanding Activation Groups 483 15.7. Chapter Summary 490 15.8. Key Terms 491 15.9. Discussion/Review Questions 492 15.10. Exercises 492 16: Handling Errors 493 16.1. Chapter Overview 493 16.2. Capturing Operation Code Errors 493 16.3. Using the (E) Extender 493 16.4. Monitor and On-error Operations 498 16.5. Finding Data Errors 500 16.6. Error Subroutines and Data Structures 505 16.7. Handling SQL Errors 511 16.8. Navigating Legacy Code 513 16.9. Chapter Summary 515 16.10. Key Terms 516 16.11. Discussion/Review Questions 517 16.12. Exercises 517 17: Programming with Subfiles 519 17.1. Chapter Overview 519 17.2. Subfiles 519 17.3. Subfile Record Formats 522 17.4. Subfile Control Record Formats 523 17.5. Loading the Subfile 524 17.6. Chapter Summary 543 17.7. Key Terms 543 17.8. Discussion/Review Questions 543 17.9. Exercises 544 18: Working with APIs 545 18.1. Chapter Overview 545 18.2. Popular APIs 545 18.3. User Space APIs 548 18.4. Creating API Wrapper Procedures 554 18.5. Creating Web Pages with HTTP APIs 559

xiv Programming in ILE RPG 18.6. Chapter Summary 563 18.7. Key Terms 564 18.8. Discussion/Review Questions 564 18.9. Exercises 564 Appendix A: ILE RPG Summary 565 Appendix B: Program Development Tools 597 Appendix C: Program Testing and Debugging 615 Index 630 Supplemental materials for this book are available for download at www.mc-store.com/programming-ile-rpg-fifth-edition/dp/1583473793. Or scan the QR code to access this book s supplemental materials: