user3311539
user3311539

Reputation:

Parameter declaration in Procedure Prototype and Interface in RPG

I am trying to understand the way parameter variables are declared in Procedure Prototype (PR) and Procedure Interface (PI) in an RPG program. Why is it that the parameter variables need to be defined in both the PR and PI? Declaring it both places is necessary but why the need to redefine?

Upvotes: 1

Views: 770

Answers (1)

Barry
Barry

Reputation: 448

You do not need a Dcl-Pr for procedures within the same module. You only need a prototype for procedures which are either

  1. within a different module within the program
  2. in a service program which you are trying to reference

Upvotes: 2

Related Questions