Midrange News for the IBM i Community

Posted by: vikash singh
prototype and procedures in rpgle
has no ratings.
Published: 20 Jun 2012
Revised: 16 Feb 2013 - 4114 days ago
Last viewed on: 22 May 2024 (7765 views) 

Using IBM i? Need to create Excel, CSV, HTML, JSON, PDF, SPOOL reports? Learn more about the fastest and least expensive tool for the job: SQL iQuery.

prototype and procedures in rpgle Published by: vikash singh on 20 Jun 2012 view comments(2)

i want to some notes on prototype and procedure 

Return to midrangenews.com home page.
Sort Ascend | Descend


(Sign in to Post a Comment)
Posted by: sarge
Premium member *
United States
Comment on: prototype and procedures in rpgle
Posted: 11 years 11 months 2 days 15 hours 38 minutes ago
Edited: Wed, 20 Jun, 2012 at 09:32:45 (4355 days ago)



if you get the online book "Who knew you could do that with RPG/IV: A scorcer's guide to RPG" you will find some information on this.

bob also has a printed book "RPG TnT: 101 Dynamite Tips 'n Techniques with RPG IV" that has some examples you can find examples of using sub procedures and prototyping.

for a very in-depth (and reusable) resource, i reccomend the DVD set that bob has created that explains procedures, sub procedures and service programs/modules and prototyping.


Posted by: passthru
Premium member *
Comment on: prototype and procedures in rpgle
Posted: 11 years 3 months 5 days 15 hours 43 minutes ago

In my opinion, under a module project:

The prototype of a procedure is better using extname to define.

There are three kind of copybooks for procedures. First copybook is Pr definition for a procedure to match Pi definition without EXTPGM or EXTPROC keyword; Secode copybook is Pr definition for EXTPGM; Third copybook is Pr definition for EXTPROCE.