IBM has been adding commands to CL that have been operations in other languages for many years. IBM i V5R4 saw the introduction of the Subroutine group of commands. There are five commands in this group, but I only use four:
- SUBR - marks the start of the subroutine.
- ENDSUBR - marks the end of the subroutine.
- RTNSUBR - Return from subroutine.
- CALLSUBR - calls the subroutine given.
I am not going to describe what a subroutine is, as I am assuming that all the readers of this blog have at least a basic knowledge of programming principals.