MC Press Online
Welcome to the MC Press Online!
Need help withour eBooks?
Contact PublishersRow.com
Click here, to go to our main store

  MC Press Online eBookStore  

Programming in RPG IV
preview of book Programming in RPG IV
text of book Programming in RPG IV

Programming in RPG IV

Authors:
Publisher: MC Press Online
Publication Date: June 2010
Subject: Computer: Programming & Software Engineering
Category: Programming
Number of Pages: 577

Free Preview    Email to Friend   Add to wish list
 Available as: (for format`s description click on its name)
Individual E-Version (PDF) Individual E-Version (PDF) ISBN: 9781583473559  
$61.17
 
 Reg.: $
79.95 per N pages
 You Save: 
$18.78 (23%)
 Online  Open CopyPrint    
all time
Printed Edition   see MC Press Online    
About this title
Get up to speed on today's RPG IV!

Since its original publication, Programming in RPG IV has given thousands of students and professionals a strong foundation in the essentials of business programming using RPG IV. Now Bryan Meyers has teamed up with Jim Buck to produce the most significant update to the book since that first edition. The Fourth Edition (previously published by 29th Street Press) is completely reorganized and rewritten to reflect the RPG IV style and techniques used by today's most capable RPG technicians.

RPG IV is evolving and gaining capabilities at a more rapid rate than any of today's other computer languages, and this text is up-to-the-moment in its coverage of the specifications, operations, and functions of the language. The coverage uses V5R4 as its base release and is also compatible with later releases.

Free-format specifications, modular procedures, the latest built-in functions, and more are all covered in this fully updated text, complete with numerous programming examples and support material. The topics have been reorganized to follow a more logical approach to teaching the language than did previous editions. The new order also reflects the importance of the language components in real-world usage.

The scope of the book includes comprehensive coverage of the program development process, RPG IV specifications and operations, top down structured design, database definition and processing, interactive applications, and modular programming. This edition explains and emphasizes important concepts of the Integrated Language Environment, including the use of modular procedures and service programs in a modern IBM i application.

A series of appendices will prove useful not only while you are learning RPG IV but also as everyday references. The appendices include a comprehensive summary of RPG IV syntax elements (specifications, operations, functions, and so on); an RPG IV style guide; introductions to program development tools (including WebSphere Development Studio Client and Programming Development Manager); a guide to debugging programs; and a summary of legacy syntax and techniques for use when maintaining older applications.

Upon completion of this book, you will be well-equipped to create highly effective and maintainable RPG IV programs using the latest techniques.

If you are an instructor who has taught with previous editions of Programming in RPG IV, you'll appreciate how the new flow of the book, along with all new instructor materials, makes it easy to build a solid, modern RPG IV foundation for your students. By focusing on real-world problems, down-to-earth solutions, and the latest style techniques, this book will make them stand out in the RPG marketplace.
About authors
Bryan Meyers
Bryan Meyers is well known to IBM i technicians as the author of a number of popular books and frequent magazine articles. His programming, management, and consulting career has spanned most of the IBM midrange history, from the System/360 through the AS/400 and Power Systems using IBM i. For much of that time, Bryan was the IT director for an international hospitality franchisor. He has also managed computer operations for municipal government, international construction, and broadcasting media industries. Currently, Bryan presents IBM i training to organizations worldwide in a variety of environments, including onsite training, video programs, and online learning. In addition to Programming in RPG IV, his books include Control Language Programming for IBM i (MC Press, 2011) and RPG IV Jump Start (29th Street Press, 2001).

Jim Buck
Jim Buck's career in IT spans more than 25 years, primarily in the manufacturing and healthcare industries. He is a programmer/analyst instructor at Gateway Technical College in Kenosha, Wisconsin; eight-year president of the Wisconsin Midrange Computer Professional Association (WMCPA); co-author of three IBM i textbooks; and the recipient of the 2007 IBM System i Innovation Education Excellence Award. Jim has been instrumental in creating an advisory board for Gateway's IBM i curriculum, developing classes and seminars in IBM's programming software, and opening networking opportunities for students.

Contents
Preface

Chapter 1: Introduction to Programming and RPG
Chapter Overview
Programming
History of RPG
Program Variables
Objects, Data Files, and the Data Hierarchy
Programming Specifications
The Program Development Cycle
Program Entry and Testing
Chapter Summary
Key Terms
Discussion/Review Questions
Exercises

Chapter 2: Getting Started
Chapter Overview
RPG IV Specifications
RPG Specifications for a Sample Program
Control Specifications
File Description Specifications
Input Specifications
Output Specifications
Calculation Specifications
Internal Documentation
The Completed Program
Output Editing
Chapter Summary
Key Terms
Discussion/Review Questions
Exercises
Programming Assignments

Chapter 3: Externally Described Files
Chapter Overview
The i5/OS Approach to Database Files
Physical and Logical Files
i5/OS Database and SQL
Introduction to DDS
Physical Files
Logical Files
Creating Database Files
RPG IV Programming with Externally Defi ned Files
Externally Described Printer Files
Putting It All Together
Using a Field Reference File
Chapter Summary
Key Terms
Discussion/Review Questions
Exercises
Programming Assignments

Chapter 4: Defining Data with Definition Specifications
Chapter Overview
Introducing Definition Specifications
Defining Standalone Variables
Assigning Initial Values to Data
Defining Constants
Defining Data Structures
Using Definitions in a Program
Chapter Summary
Organizing Definition Specifications
Key Terms
Discussion/Review Questions
Exercises
Programming Assignments

Chapter 5: Using Arithmetic Operations and Functions
Chapter Overview
Simple Numeric Assignment
Using Eval for Arithmetic
Rounding
Using Built-in Functions
Chapter Summary
Key Terms
Discussion/Review Questions
Exercises
Programming Assignments

Chapter 6: Processing Character Data
Chapter Overview
Simple Character Assignment
Concatenating Character Values
Using Built-in Functions with Character Data
Using Variable-Length Character Variables
Determining Data Properties
Chapter Summary
Key Terms
Discussion/Review Questions
Exercises
Programming Assignments

Chapter 7: Working with Dates
Chapter Overview
Defining Date-Related Data
Understanding Date Formats
Simple Date Assignment
Simple Date Arithmetic
Using Built-in Functions with Dates
Chapter Summary
Key Terms
Discussion/Review Questions
Exercises
Programming Assignments

Chapter 8: Controlling Program Workflow
Chapter Overview
Structured Design
Top Down Design
Chapter Summary
Key Terms
Discussion/Review Questions
Exercises
Programming Assignments

Chapter 9: Using Arrays and Tables
Chapter Overview
Representing Tables of Data
Arrays
Tables
Chapter Summary
Key Terms
Discussion/Review Questions
Exercises
Programming Assignments

Chapter 10: Accessing and Updating Database Files
Chapter Overview
Operations for Input Files
Operations for Output Files
Update Files and I/O Operations
File and Record Locking
Putting It All Together
Embedding SQL Statements in RPG
Chapter Summary
Key Terms
Discussion/Review Questions
Exercises
Programming Assignments

Chapter 11: Writing Interactive Applications
Chapter Overview
Batch and Interactive Programs
Display Files
Additional DDS Keywords
Interactive File Maintenance
Screen Design and CUA
Chapter Summary
Key Terms
Discussion/Review Questions
Exercises
Programming Assignments

Chapter 12: Calling Programs and Passing Parameters
Chapter Overview
Modular Programming
Prototyping the Call Interface
Callp (Call a Prototyped Procedure or Program)
The Procedure Interface
Changing Parameters, the Return Operation, and *Inlr
Fitting the Pieces
Passing Parameters by Read-Only Reference
Using a Modular Approach
APIs
Data Areas
Chapter Summary
Key Terms
Discussion/Review Questions
Exercises
Programming Assignments

Chapter 13: Building Modular Programs with Procedures
Chapter Overview
Dynamic Program Calls and Static Binding
Procedures and Subprocedures
Creating Service Programs
Chapter Summary
Key Terms
Discussion/Review Questions
Exercises
Programming Assignments

Chapter 14: Handling Errors
Chapter Overview
Capturing Operation Code Errors
Finding Data Errors
The INFSR Subroutine
The *PSSR Subroutine
Chapter Summary
Key Terms
Discussion/Review Questions
Exercises
Programming Assignments

Chapter 15: Programming with Subfiles
Chapter Overview
Subfiles
Loading the Subfile
Subfiles and Change
Uses of Subfiles
Chapter Summary
Key Terms
Discussion/Review Questions
Exercises
Programming Assignments

Appendix A: RPG IV Summary

Appendix B: RPG IV Style Guide

Appendix C: Program Development Tools

Appendix D: Program Testing and Debugging

Appendix E: Maintaining the Past

Appendix F: Data Files

Index
Reviews
"This book approaches the language with the intent of teaching you all the up-to-date features and tools. It was exactly what I was looking for."
— Aaron Bartell

"A great way to learn (or teach) today's RPG programming. I recommend this book and I will use it alongside my own course materials when teaching newcomers to the RPG language."
— Susan Gantner

Related titles
Advanced, Integrated RPGAdvanced, Integrated RPG
Control Language Programming for IBM iControl Language Programming for IBM i
Database Design and SQL for DB2Database Design and SQL for DB2
Flexible Input, Dazzling Output with IBM iFlexible Input, Dazzling Output with IBM i
Free-Format RPG IV, 2nd EditionFree-Format RPG IV, 2nd Edition
Free-Format RPG IV, 3rd EditionFree-Format RPG IV, 3rd Edition
Functions in Free-Format RPG IVFunctions in Free-Format RPG IV
i5/OS and Microsoft Office Integration Handbooki5/OS and Microsoft Office Integration Handbook
Java for RPG ProgrammersJava for RPG Programmers
Remote System Explorer, TheRemote System Explorer, The
RPG TnTRPG TnT
SQL Built-In Functions and Stored ProceduresSQL Built-In Functions and Stored Procedures
SQL for eServer i5 and iSeriesSQL for eServer i5 and iSeries
Programmer's Guide to iSeries NavigatorProgrammer's Guide to iSeries Navigator
WDSC: Step by StepWDSC: Step by Step
 
  Special Offer Code  
Enter your Special Offer Code here:
  Search for  

  Our Products  
Browse all »»
DB2 10 for z/OS Database Administration (Exam 612), Chapter 03: Access and Security
Managing Without Walls
DB2 9 for Linux, UNIX, and Windows Advanced Database Administration: Certification Study Guide (Exam 734)

If download option is selected, Adobe Acrobat 5.0 or lateris requiredto read our e-books*


*Windows PC, Mac OS9/OSX, and Linux