I cannot remember how long ago it was when IBM introduced the %PARMS RPG Built in Function, BiF, that would return the number of parameters were passed to the program. This has been “refined” in IBM i 7.5 TR2 and 7.2 TR8 with two new BiFs:
%PASSED: Returns logical true if the parameter was passed
%OMITTED: Returns logical true if the parameter was omitted
To show how these BiFs work I created a procedure, that contains the new, and a RPG program to call the procedure.
Let me start showing by showing the procedure, Procedure:
Read more » Read More