DEEP DIVE: Procedures and Service Programs from A to Z
Presenters: Jon Paris and Susan Gantner, Partner400 and System i Developer Consortium
It has been many years since Jon coded a subroutine. These days he much prefers to use RPG procedures instead. They make great subroutine replacements and make your programs both easier to read and maintain. The result is applications that are faster to build, easier to debug and more reliable.
But procedures are just the beginning. To fully exploit them in your applications you need to package them into Service Programs so that you can share them easily and efficiently among multiple programs.
In this hands-on workshop, Jon will explain the advantages of using procedures to modularize your code and show you just how to utilize them to best advantage.
We will start with the details of coding procedures - the syntax as well as the best practices for using them as a means of structuring your code. Specifically, we'll explore such questions as:
• What's the benefit of return values?
• Why is local data important?
• Can prototype keywords make my coding life easier?
• Why should I code prototypes in a separate member?
The procedure lectures will be followed by a series of hands-on exercises.
Once we have mastered the art of RPG procedures, we will move on to Service Programs. In addition to details on creating and maintaining them, we'll explore:
• What Service Programs are
• Why you should use them
• How to package your procedures into them
• Simple ways to update them
More hands-on labs will follow. We may not make it all the way from A to Z - but we'll give it a try and at least make it all the way to P!
Jon Paris’s IBM midrange career started when he fell in love with the System/38 while working as a consultant. This love affair ultimately led him to joining IBM.
In 1987, Jon was hired by the IBM Toronto Laboratory to work on the S/36 and S/38 COBOL compilers. Subsequently Jon became involved with the AS/400 and in particular COBOL/400.
In early 1989 Jon was transferred to the Languages Architecture and Planning Group, with responsibility for the COBOL and RPG languages. There he played a major role in the definition of the new RPG IV language and in promoting its use with IBM Business Partners and Users. Jon left IBM in 1998 to focus on developing and delivering education focused on enhancing AS/400 and iSeries application development skills.
Jon is a frequent speaker at User Groups meetings and conferences around the world, and holds a number of speaker excellence awards from COMMON.
Susan Gantner’s career has spanned over 24 years in the field of application development. She began as a programmer developing applications for corporations in Atlanta, Georgia, working with a variety of hardware and software platforms. She joined IBM in 1985 and quickly developed a close association with the Rochester laboratory during the development of the AS/400 system.
Susan worked in Rochester, Minnesota for 5 years in the AS/400 Technical Support Center. She later moved to the IBM Toronto Software Laboratory to provide technical support for programming languages and AD tools on the AS/400. Susan left IBM in 1999 to devote more time to teaching and consulting. Her primary emphasis is on enabling customers to take advantage of the latest programming and database technologies on OS/400.
Susan is a regular speaker at COMMON conferences and other technical conferences around the world and holds a number of Speaker Excellence medals from COMMON.