MC Systems Insight
MC Power Technology Manager
MC RPG Developer
MC Power Developer
MC TNT Tips 'n Techniques
MC AIX Expert
MC Linux Expert
MC Mobile on Power
This Week @ the MC Press Bookstore

February 6, 2013 | Volume 12 Issue 3


TOP STORY: Practical RPG: Flexible Parameters, Part 2
FEATURED ARTICLE: Simon's Solutions: Prepared to Be Surprised by QCMD?
NEWS HIGHLIGHT: I/O enhancements for IBM Power Systems
MC STORE: Top 10 Best-Selling Titles
EVENT: Web GUI for IBM i Green Screens: Modernize Faster with New Presto 4.5
Manage Subscription | Contact Us

Feature Article - Programming
Practical RPG: Flexible Parameters, Part 2

As parameter lists get more complex, making parameters optional gets harder, but service programs can help.

joe plutaWritten by Joe Pluta

This series is all about encapsulating your business logic. In the first article in this series, I showed you how to use optional parameters to make your called program a little more flexible. This technique works very well in simpler cases when you have just a few parameters and some are used less frequently than others. However, optional parameters become a bit more cumbersome when the number of parameters grows or when any combination of optional parameters can be passed. This article presents a different approach that can handle any variety of parameters.


Feature Article - Programming
Simon's Solutions: Prepared to Be Surprised by QCMD?

Learn the practical techniques to take advantage of the IBM-supplied request processors.

junlei liWritten by Junlei Li

In a shell environment (for example, a UNIX Shell environment, or the QShell or PASE Shell environment provided by IBM i), you can run a list of commands all at once by simply separating the commands by semicolon (;) operators. For example, to obtain an estimated running time of a time-consuming program, you can invoke the target program in a QShell or PASE Shell session via the following list of Shell commands:


In the News

Support MC Press - Visit Our Sponsors

Forums Sponsor



Search Sponsor



  Bookstore Sidebar Header