RPG IV programming

RPG IV programming | IBM Redbooks

RPG IV programming guide

RPG IV programming resource, this redbook is one the best RPG IV programming resources I have found.
This redbook may be old but is still relevant and very well written.
Source: IBM Redbooks | Who Knew You Could Do That with RPG IV? A Sorcerer’s Guide to System Access and More

cover image


This IBM Redbooks publication is focused on RPG IV as a modern, thriving, and rich application development language for the 21st century. It is written for those AS/400 system programmers that are in the cusp between RPG/400 and RPG IV and are looking for hints and tips to make the move forward worth their while. This book promises to drop little golden nuggets of information in the form of code samples and style guidelines. Picking up each golden nugget will lead you step-by-step down the path that will eventually allow you to take full advantage of RPG IV and the Integrated Language Environment (ILE). Even the most experienced RPG IV programmer will find something useful in this book.

***Update Notice***
The SSERVER3 and SCLIENT3 example program as an example of multiple I/O between one server and multiple clients was not correct and has been updated. The updated sections are marked by change bars in Sections 5.5.5 and 5.5.6.

In addition, we updated the RPGISCOOL library SAVF found under Additional materials on the IBM Redbooks Web site. See Appendix A “Example RPG IV programs on the Web” for instructions to download these examples. The source files in library RPGISCOOL file SCKSRC that have been updated are: SCKSELF, SCKCPY, SCLIENT3, SSERVER3, SCLIENT3B, and SSERVER3B.

Table of contents

Chapter 1. An introduction to RPG IV
Chapter 2. Programming RPG IV with style
Chapter 3. Subprocedures
Chapter 4. An ILE guide for the RPG programmer
Chapter 5. Exploring new ways to exploit your AS/400 system
Chapter 6. Database access with RPG IV
Chapter 7. A modern tool for a modern language: CODE/400
Chapter 8. VisualAge for RPG as a GUI for RPG applications
Appendix A. Example RPG IV programs on the Web
Appendix B. An introduction to the Integrated File System (IFS)
Appendix C. PTFs for *SRCSTMT and *NODEBUGIO

Modernizing IBM i Applications from the Database up to the User Interface and Everything in Between

cover image


This IBM® Redbooks® publication is focused on melding industry preferred practices with the unique needs of the IBM i community and providing a holistic view of modernization. This book covers key trends for application structure, user interface, data access, and the database.

Modernization is a broad term when applied to applications. It is more than a single event. It is a sequence of actions. But even more, it is a process of rethinking how to approach the creation and maintenance of applications. There are tangible deliveries when it comes to modernization, the most notable being a modern user interface (UI), such as a web browser or being able to access applications from a mobile device. The UI, however, is only the beginning. There are many more aspects to modernization.

Using modern tools and methodologies can significantly improve productivity and reduce long-term cost while positioning applications for the next decade. It is time to put the past away. Tools and methodologies have undergone significant transformation, improving functionality, usability, and productivity. This is true of the plethora of IBM tools and the wealth of tools available from many Independent Solution Providers (ISVs).

This publication is the result of work that was done by IBM, industry experts, and by representatives from many of the ISV Tool Providers. Some of their tools are referenced in the book. In addition to reviewing technologies based on context, there is an explanation of why modernization is important and a description of the business benefits of investing in modernization. This critical information is key for line-of-business executives who want to understand the benefits of a modernization project. This book is appropriate for CIOs, architects, developers, and business leaders.

Table of contents

Chapter 1. Why modernize
Chapter 2. Path to modernization
Chapter 3. Modern application architecture techniques
Chapter 4. Modern development tools
Chapter 5. Interfacing
Chapter 6. User interface
Chapter 7. Modern RPG
Chapter 8. Data-centric development
Chapter 9. Database re-engineering
Chapter 10. Mobile, UI, and database modernization tools
Chapter 11. EGL
Chapter 12. PHP
Chapter 13. Java
Chapter 14. Web serving: What and why
Chapter 15. HTML, CSS, and JavaScript
Chapter 16. Security
Chapter 17. Globalization
Chapter 18. Cloud