![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiHkraWlHW0dFao0aJOvc0aVP7itwhOFxQxkrcv6X1j7JTsTtcNrIGjFXgL4g2nn71is91EngOX9GLINcGv-rpmclzII0nAE-TRdNXMv2HWO03BCxNoovPyPWOY1D1ir17a0s6r9BpoHjAjruVaYmrjORIfhOq4RBthXsagrUD8x-PpAvBu8VLHAKZN/s200/rpg.png)
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