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 - 1502 days ago
Last viewed on: 29 Mar 2017 (4350 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

COMMENTS

(Sign in to Post a Comment)
Posted by: sarge
Premium member *
United States
Comment on: prototype and procedures in rpgle
Posted: 4 years 9 months 9 days 10 hours 24 minutes ago
Edited: Wed, 20 Jun, 2012 at 09:32:45 (1743 days ago)

vikash,

 

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.

-sarge

Posted by: passthru
Premium member *
Comment on: prototype and procedures in rpgle
Posted: 4 years 1 months 10 days 10 hours 29 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.