Book Review: The Modern RPG IV Language, Fourth Edition

General
Typography
  • Smaller Small Medium Big Bigger
  • Default Helvetica Segoe Georgia Times
I have three of the four editions of this book and wouldn't part with any of them. When the fourth edition of Bob's book was announced, I was eager to obtain one. One reason was that my third edition was getting a little raggedy from use, but mostly I wanted to see what Bob was going to say about the "new" subject areas that have impacted RPG since 2003, when the third edition came out. We all know that Bob was reluctant at first about the free-format style, even though he had explained it well, with examples, in his third edition of this book. Also, the RPG language now included new XML opcodes and built-in functions (BIFs), and these needed some of Bob's touch to help us understand them.

In this fourth edition, Bob has basically added to his previous edition. All the previous well-written examples and explanations are still there, but now there's more. In summary, the book now includes the new XML operations and BIFs, additional examples and text on free-format, and a chapter on Web programming interfaces using CGI APIs.

In chapter 2, I was glad to see a new section on integer (and unsigned integer) variables, their characteristics, comparisons to C and Java, and a great table with details. We in the RPG world tend to use what we've always used for numeric data: decimal! This section shows us a new perspective on a very old data type.

In chapter 4, Bob has added explanations and examples for the %subarr (get/put part of an array), %xml, and %handler BIFs, providing the usual detailed breakdown of the BIF parameters.

While discussing BIFs, I'd like to mention that many new examples have been added to the BIF chapter, and most of these new examples are shown in the free-format style. The %trim BIF upgrade to include a specified trim character is also described here.

In chapter 5 on opcodes, Bob updated the book for the CallP (Call with prototype) operation and provided an entirely new example. For the Update operation, Bob has included information on the %fields BIF option. However, the biggie in this chapter is the thorough discussion (with examples) of the Xml-Into operation and associated BIFs.

Chapter 12 on alternate syntax (free-format) was expanded in this edition, from 7 pages to 21 pages. This seemed a little short until I realized that Bob put dozens of free-format examples throughout the book (where they belong) and didn't just jam everything into here.

The last chapter of this book is new; it addresses the Web development world we now live in. Bob introduces us to CGI and the IBM APIs we can use to develop Web applications. The explanations and examples are classic Cozzi—well-written and easy to follow.

To be clear, this book isn't a training manual; it's a reference book. It's well-organized, with BIFs and opcodes in separate chapters in alphabetical order, and contains good examples.

You should consider this book to be an investment in your career. It belongs on the desk of every RPG programmer.
JIM MARTIN

Jim Martin holds a BS degree in mathematics and an MS in computer science. For 26 years, he was employed by IBM, where he wrote RPG applications for customers and worked in the programming laboratory as a programmer on portions of CPF and the OS/400 operating system. After leaving IBM, Jim took post-graduate work in computer science and performed RPG training. He is an IBM-certified RPG IV developer and author of multiple bestselling editions of Free-Format RPG IV, which, since the book's initial publication in 2005, have taught thousands of RPG IV programmers how to be successful with the free-format coding style.


MC Press books written by Jim Martin available now on the MC Press Bookstore.

Free-Format RPG IV: Third Edition Free-Format RPG IV: Third Edition
Improve productivity, readability, and program maintenance with the free-format style of programming in RPG IV.
List Price $59.95

Now On Sale

Free-Format RPG IV: Second Edition Free-Format RPG IV: Second Edition
>Make the transition from coding in fixed-format RPG to free format.
List Price $59.95

Now On Sale

Functions in Free-Format RPG IV Functions in Free-Format RPG IV
Here’s the ultimate guide to writing RPG IV programs with functions in the free-format style.
List Price $59.95

Now On Sale

BLOG COMMENTS POWERED BY DISQUS

LATEST COMMENTS

Support MC Press Online

$

Book Reviews

Resource Center

  •  

  • LANSA Business users want new applications now. Market and regulatory pressures require faster application updates and delivery into production. Your IBM i developers may be approaching retirement, and you see no sure way to fill their positions with experienced developers. In addition, you may be caught between maintaining your existing applications and the uncertainty of moving to something new.

  • The MC Resource Centers bring you the widest selection of white papers, trial software, and on-demand webcasts for you to choose from. >> Review the list of White Papers, Trial Software or On-Demand Webcast at the MC Press Resource Center. >> Add the items to yru Cart and complet he checkout process and submit

  • SB Profound WC 5536Join us for this hour-long webcast that will explore:

  • Fortra IT managers hoping to find new IBM i talent are discovering that the pool of experienced RPG programmers and operators or administrators with intimate knowledge of the operating system and the applications that run on it is small. This begs the question: How will you manage the platform that supports such a big part of your business? This guide offers strategies and software suggestions to help you plan IT staffing and resources and smooth the transition after your AS/400 talent retires. Read on to learn: