tfh
Volume 18, Number 31 -- August 24, 2009

Reader Feedback on RPG: A Great Language with a Greater History

Published: August 24, 2009

Whenever you bring up the topic of the RPG programming language to the AS/400 community, it gets their attention, and Brian Kelly's walk down memory lane for RPG in last week's issue of The Four Hundred predictably resonated with readers. Here's some of the feedback that readers sent to Kelly, offering advice to IBM and commiserating with the frustration that RPG programmers sometimes feel in a corporate computing landscape dominated by Java, C#, PHP, and other languages.


Hi, Brian:

Thanks for your great RPG article today.

I did code in Fargo and the 1401 RPG, and I have a copy of the GI manual IBM 1401 Data Processing Division From Control Panel to Stored Program (copyright 1959). Someone at IBM had a great idea to bridge from unit record to the stored program 1401, and as an SE I helped several companies do that and it was really easy and fun.

Congratulations on being able and willing to make the bridge to the current technology and to be able to articulate your knowledge so well.

Hope all is well with you.

--Paul


I am being weaned off the System i even after we just recently replaced our iSeries machines. I am on a steep learning curve with Visual C# 2008 (I like it), but notice Microsoft's bugs.

I sent a copy of your article to Mark Shearer and asked if he would forward my questions, which are yours too: "Web enabling," enhancements to RPG to make it fully object oriented, including polymorphism, methods, and class (it's mostly there).

--John


Hey, Brian:

Like you I'm an old timer with RPG and IBM unit record equipment. It has always been my understanding that RPG was originally created at General Electric and was used internally. Have you ever heard of this? In your story you use the Roman numeral I to note the original version, but the correct form is RPG, as we never knew the Romans would adopt it.

RPG without direct file processing, arrays, and the other goodies that came out in RPG II was all we needed (and a little BAL) to fully run our companies back in the 1960s.

Thanks for the walk back through time with RPG. I know four or five languages well, but I guess I'll always like my first love the best. I just can't figure out what Roman numeral ILE is. "E"???

--Doug


One simple thing to add to the RPG language would be to run CL commands native, not only through QCMDEXC.

Also eliminate the need to write the command separately and define all the parameters again. The length and type of the parameters could be defined either on the parm statement or on the prototype, it is not needed to define in both places. Everything could be combined together.

But IBM is doing the opposite. It looks that it tries to kill the command interface, without having any better alternative. Many of the new APIs do not have an IBM command for them to run. User commands that are built for them are not standard. With the introduction of ILE procedures/module/service Programs, commands are abused, none of the new stuff is able to work closely with commands.

There is no possibility to build a command interface on the top of a procedure or module.

Imagine a complex command like OVRPRTF that needs to be called via a procedure interface. Here's what it will look like:

CALLP OVRPRTF (*PRTF : *omit:*omit:*omit:10:15:*omit:*omit:*omit:54)

With a command, it is so simple and readable:

OVRPRTF FILE(*PRTF) LPI (10) CPI(15) OVRFLW(54).

And despite that, commands are such an excellent thing, all the new development (date-type parameters, long decimal variables, etc.) is bypassing commands.

--Jenda


Hi, Brian:

Kudos on another excellent article.

As one who really enjoys programming in the new RPG and taking advantage of its capabilities (including the ILE stuff), I am gratified that there are still some that can appreciate its simplicity as well as the power of the language:

"The most amazing thing about RPG is that it still can be used for simple operations. Yet it can also perform at the sublime levels so far ahead of the current pack that no real computer nerds or eggheads who were honest with themselves could ever conclude that there is any reason why it is not the best computer language ever developed for everything."

A few comments:

1. I think that the "everything" needs to be qualified to "everything business," since scientific or lower level languages (e.g., Fortran and C) are probably better suited for non-business type of applications.

2. Since RPG has fallen "way" behind in the Web enablement and GUI arenas, I think this is a show-stopper from getting new blood or even serious consideration from the programming community nowadays.

3. Realistically, moving RPG to another platform, expecting full or almost the full range of services to be available to the program is a huge task, IMHO. Think about security, adoption, various APIs (including the C routines), commitment control, referential integrity (the last two being database specific, but the error handling needs to be built into the compiler), date data types, EBCDIC vs. ASCII issues, CCSID and codepage issues, *LIBL, display/printer/communications files, plus I'm sure you can think of many others.

Would IBM need to invent the RVM (RPG Virtual Machine) with RDBC drivers to all the popular databases?

I wish it could be ported, but I don't see how it could be, from a practical standpoint.

--Mark


Hi, Mark:

Thank you for your comments and insights.

Perhaps it would be in IBM's best interests over time to change the operating systems to support all of the advanced notions that come from the licensed internal code on the Power boxes and when the mainframe is on Power, the full underbelly of an advanced system could be there for all OSs to use. Each OS personality could theoretically stay intact while permitting access to a host of objects and methods that would not only improve the OSs, but also the programming languages with which they interface.

Where can superior OS technology go if not to where IBM i already is and has been for 30 years? Then all languages should be able to run the same on all systems even if there are quirks that the individual compilers need to compensate along the way.

Your comment on the Web is well taken. I am well versed on IBM's rationale for not enhancing RPG to perform in this arena: IBM just doesn't get it!

--Brian


The really sad part, IMHO, is that IBM has spent untold millions developing stop-gap measures that could never fill the gap (WSG, WebFacing) instead of focusing on doing it "right." Java and PHP are good strategic additions, in order to ADD to the available applications (keeping existing customers), but wouldn't convince anyone not on the platform to switch over.

--Mark


Thank you, Brian Kelly, for writing the memoirs for our old friend in Goodbye, AS/400, Old Friend.

If someone asks me about the history/pedigree of this most unique business platform--just call it an iBM--I will point them to your document.

Just wanted to say this for somewhat over a year now.

--Michiel


RELATED STORY

RPG: A Great Language with a Greater History



                     Post this story to del.icio.us
               Post this story to Digg
    Post this story to Slashdot


Sponsored By
INFINITE SOFTWARE

INFINITEiSeries™

The INFINITEiSeries™ Suite is the solution of choice for migrating
your Midrange applications quickly and cost-effectively to execute
in native mode on Linux, UNIX or Windows platforms. INFINITE Software
is the leading solution for legacy application rehosting, web-enablement
and integration for AS/400 users.

                        Features of the INFINITE Software solution:
                        · Deploy on multiple platforms
                        · Replace green screens while maintaining a single set of source code
                        · Integrate with desktop and enterprise-wide tools
                        · Self-service functionality via the web
                        · Provide a common user interface

For more information, visit www.infinitesoftware.com


Editor: Timothy Prickett Morgan
Contributing Editors: Dan Burger, Joe Hertvik, Brian Kelly, Shannon O'Donnell,
Mary Lou Roberts, Victor Rozek, Kevin Vandever, Hesh Wiener, Alex Woodie
Publisher and Advertising Director: Jenny Thomas
Advertising Sales Representative: Kim Reed
Contact the Editors: To contact anyone on the IT Jungle Team
Go to our contacts page and send us a message.

Sponsored Links

looksoftware:  Access your i applications anywhere, anytime. Register for a Webinar: Sept 1 or 2
System i Developer:  RPG & DB2 Summit in Minneapolis, October 13-15; 3 days of serious training
COMMON:  Celebrate our 50th anniversary at annual conference, May 2 - 6, 2010, in Orlando

 

 

IT Jungle Store Top Book Picks

Easy Steps to Internet Programming for AS/400, iSeries, and System i: List Price, $49.95
The iSeries Express Web Implementer's Guide: List Price, $49.95
The System i RPG & RPG IV Tutorial and Lab Exercises: List Price, $59.95
The System i Pocket RPG & RPG IV Guide: List Price, $69.95
The iSeries Pocket Database Guide: List Price, $59.00
The iSeries Pocket SQL Guide: List Price, $59.00
The iSeries Pocket Query Guide: List Price, $49.00
The iSeries Pocket WebFacing Primer: List Price, $39.00
Migrating to WebSphere Express for iSeries: List Price, $49.00
Getting Started With WebSphere Development Studio Client for iSeries: List Price, $89.00
Getting Started with WebSphere Express for iSeries: List Price, $49.00
Can the AS/400 Survive IBM?: List Price, $49.00
Chip Wars: List Price, $29.95


 
Four Hundred Stuff
ASTI Sees Promise in Plasmon's UDO Technology

Stonebranch Bolsters i OS Support in Workload Automation Tools

Data Control Issues Bring vLegaci QuickerApps to Market

Oracle Gives JDE More Supply Chain Planning Brains

Infor Snaps Up SoftBrands, Gets i OS-Based Hotel Suite

Four Hundred Guru
Validate DBCS-Open Data

Formatting Dates with SQL

Admin Alert: Correcting and Expanding the Program to Change User Passwords on the Fly

Four Hundred Monitor
Four Hundred Monitor's
Full iSeries Events Calendar

System i PTF Guide
August 15, 2009: Volume 11, Number 33

August 8, 2009: Volume 11, Number 32

August 1, 2009: Volume 11, Number 31

July 25, 2009: Volume 11, Number 30

July 18, 2009: Volume 11, Number 29

July 11, 2009: Volume 11, Number 28

July 4, 2009: Volume 11, Number 27

TPM at The Register
Hewlett Foundation ponies up cash for Wikipedia

Oracle's Sun acquisition passes US anti-trust test

Chip makers to flex their bits at Hot Chips

Platform shared with CUDA in software bundle deal

HP servers took brunt of Q3 blow

IDC: Linux support sales to break $1bn in 2012

Linux: More contributors, more code

Citrix: Novell's only option for virtualization marriage

Apptio counts the cost of virtualization

Red Hat steps up channel reach against Novell and Microsoft

DNA-carbon nanotube microprocessors - small hope for a big shift?

Capital markets recover but tech must wait for cash

IBM halves mainframe Linux engine prices

Big Blue bundles pound down mainframe prices

THIS ISSUE SPONSORED BY:

Infinite Software
Infor
Maximum Availability
Bsafe Information Systems
WorksRight Software


Printer Friendly Version


TABLE OF CONTENTS
CIOs Say Power Systems Are the Most Reliable

A Closer Look at IBM's Q2 Server Sales

Has IBM Given Up on the i?

Mad Dog 21/21: Terms and Conditions

Jack Henry Lays Out $17 Million for Goldleaf After Good 4Q

But Wait, There's More:

Reader Feedback on RPG: A Great Language with a Greater History . . . IBM to Reveal Power7 Secrets at Hot Chips . . . Third-Party JDE Maintenance Business Is Thriving . . . Gartner: More Government Oversight Coming to Your IT Shop . . . IBM Chops Memory Prices on Power 595s . . .

The Four Hundred

BACK ISSUES




 
Subscription Information:
You can unsubscribe, change your email address, or sign up for any of IT Jungle's free e-newsletters through our Web site at http://www.itjungle.com/sub/subscribe.html.

Copyright © 1996-2009 Guild Companies, Inc. All Rights Reserved.
Guild Companies, Inc., 50 Park Terrace East, Suite 8F, New York, NY 10034

Privacy Statement