RPGIV @ Work

A unique site for RPG and System i Lovers

Welcome!

Hi, this site will provide all what you need in System i and RPG developments.

My Name is Chamara Withanachchi, System i Expert and RPG Developer. And in the field for last 11 years.

I hope you will find lot of valuable information from this site

Free-Form Procedure Interface Definition Print E-mail
User Rating: / 0
PoorBest 
Written by Chamara   

A procedure interface begins with a DCL-PI statement.


The DCL-PI statement is followed by zero or more parameters, followed by an END-PI statement.


The first statement begins with DCL-PI, followed by the name of the procedure or *N if you do not want to repeat the name of the procedure, followed by keywords, and finally a semicolon.


   DCL-PROC sayHello;
     DCL-PI *N EXTPGM; 2
         name CHAR(10) CONST;
     END-PI;

     DSPLY (’Hello ’ + name);
   END-PROC;
<Previous   Next>