Remove the need for procedure prototypes Simon Hutchinson

​This is another example of something in RPG that almost slipped by me. I now have a way not to have to define a procedure prototype in the procedures’ member. All I need is the procedure, and the RPG compiler does its “magic” to do what ever it does to make this possible. This is made possible by the addition of a new control option and parameter in the procedure declaration.
The addition to the control option is a new option REQPREXP, which allows one of three values:

*REQUIRE:  All procedures are required to have a prototype (DCL-PR)
*WARN:  If a prototype is not found for a procedure a warning error, severity 10, is received when compiled
*NO:  Procedure prototype is not required for the main and exported procedures

Read more » Read More 

Verified by MonsterInsights