Professional Documents
Culture Documents
1 of 7
http://www.ibmsystemsmag.com/ibmi/enewsletterexclusive/17069p3.aspx
Administrator
Backup and Recovery
DB2
High Availability
LPAR
Networks
Performance
Security
Systems Management
Tivoli
Trends
AIX
Linux
Open Source
What's New
Tips & Techniques
Application Development
Systems Management
Miscellaneous
Case Studies
Automotive
Healthcare
Manufacturing
Miscellaneous
Non-profit
Retail
Storage
Disk
Servers
Software
Tape
Product News
Buyer's Guide
Administrator
Backup and Recovery
DB2
Domino
High Availability
LPAR
Networks
Performance
Printing
Security
Systems Management
WebSphere
Windows Integration
Developer
General
Java
Modernization
RPG
WebSphere
Trends
IBM Announcements
Linux
Open Source
SOA
What's New
9/27/2010 9:11 AM
2 of 7
http://www.ibmsystemsmag.com/ibmi/enewsletterexclusive/17069p3.aspx
Case Studies
Automotive
Banking/Finance
Healthcare
Insurance
Manufacturing
Miscellaneous
Non-profit
Retail
Storage
Disk
Optical
Servers
Tape
Product News
Product Reviews
ENDPGM Main Page
Administrator
Backup and Recovery
CICS
DB2
High Availability
IMS
LPAR
Migration
Networks
Performance
Security
Systems Management
Tivoli
Trends
Linux
Open Source
Security
SOA
What's New
z/OS
z/VM
Tips & Techniques
Application Development
Systems Management
Case Studies
Automotive
Banking/Finance
Healthcare
Insurance
Manufacturing
Miscellaneous
Retail
Storage
Disk
Servers
Software
Tape
Product News
Stop Run
Buyer's Guide Main Page
9/27/2010 9:11 AM
3 of 7
http://www.ibmsystemsmag.com/ibmi/enewsletterexclusive/17069p3.aspx
Business Strategy
Competitive Advantage
Consolidation
Executive Perspective
Green IT
Migration
Open Source
ROI
Infrastructure
Blades
Storage
Systems Management
Case Studies
Distribution
Healthcare
Manufacturing
Services
Web 2.0
Cloud
Social Media
Trends
Collaboration
IBM Announcements
IBM Research
Open Source
Social Media
What's New
Product News
AIX
MAINFRAME
POWER
Newsletters
About Us
Subscribe
Current Issue
Archive
IBM i
ALL EDITIONS
ADMINISTRATOR
DEVELOPER
TRENDS
TIPS & TECHNIQUES
CASE STUDIES
9/27/2010 9:11 AM
4 of 7
http://www.ibmsystemsmag.com/ibmi/enewsletterexclusive/17069p3.aspx
STORAGE
PRODUCT NEWS
ENDPGM
BUYER'S GUIDE
Well leave to your imagination what the subprocedures look like! (Or if your imagination fails you, you can study the full source code.) But before
we move on, well just show you the prototype for the calc routine and one of the subprocedure prototypes (of necessity all of the others have the
same basic format). Notice that the calc prototype uses the EXTPROC keyword and there are no single quotation marks around the name this
indicates that currentOpPtr is a procedure pointer and will determine which procedure is called. Notice also that the prototype for the add
subprocedure has exactly the same definition in terms of return value and parameters as does calc.
Adding new operations is a breeze. Simply code the new subprocedures, add the required codes to the operations data structure and the related
subprocedure information to the pProcedures data structure - remembering to modify the DIM clauses of course! The main calculations wont
change at all.
9/27/2010 9:11 AM
5 of 7
http://www.ibmsystemsmag.com/ibmi/enewsletterexclusive/17069p3.aspx
Jon Paris is a technical editor with IBM Systems Magazine and co-owner of Partner400.
More Articles From Jon Paris
Susan Gantner is a technical editor with IBM Systems Magazine and co-owner of Partner400.
More Articles From Susan Gantner
Advertisement
WEBINAR -- RPG OA and Beyond from looksoftware Tuesday, September 28, 2010, 10 am BST (Europe)
Wednesday, September 29, 2010, 2 pm EST (USA)
Advertisement
9/27/2010 9:11 AM
6 of 7
http://www.ibmsystemsmag.com/ibmi/enewsletterexclusive/17069p3.aspx
Maximize your IT investment with monthly information from THE source...IBM Systems Magazine EXTRA & Marketplace eNewsletters.
SUBSCRIBE NOW.
View past IBM i EXTRAs here
Related Articles
Even More Flexible Calculations
E-Newsletter Exclusive | In the September EXTRA e-Newsletter, Jon Paris and Susan Gantner shared some solutions to &qout;unsolvable&qout;
RPG problems with a technique for flexible calculations. Now they delve deeper with a more complex example, making a sequence of calculations
not only possible but simple to create and use.
RPG - Anchoring Your Team
Cover Story | Alternate approaches to extending your RPG applications.
The State of Modernization
Cover Story | Bruce Vining talks modernization with Jon Paris and Susan Gantner
RPG for the Web
9/27/2010 9:11 AM
7 of 7
http://www.ibmsystemsmag.com/ibmi/enewsletterexclusive/17069p3.aspx
9/27/2010 9:11 AM