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 Prototype Definition Print E-mail
User Rating: / 0
PoorBest 
Written by Chamara   

A prototype begins with a DCL-PR statement.


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

The first statement begins with DCL-PR, followed by the name of the prototype, followed by keywords, and finally a semicolon.


  // With Parameters
  DCL-PR myPgm EXTPGM;
      name CHAR(10) CONST;
  END-PR;

  // With Parameters 
  DCL-PR addNewOrder;
      id INT(10) CONST;
      quantity INT(10) CONST;
      price PACKED(7 : 2) CONST;
  END-PR;
  
  // With no Parameters 
  DCL-PR getCurrentUser CHAR(10) END-PR

<Previous   Next>