Subroutine Numbers

With GPP2, it is possible to define the first subroutine number (in GPP, it is always 1). A DF2 file parameter, First Subroutine Number, allows the GPP2 user to define any integer number for the first subroutine. Subsequent subroutine numbers increment by 1 each time a new subroutine is encountered.

The subroutine number is presented in the SUB_NUMBER system variable. With GPP2, the number is available both during the definition of the subroutine and during each call to the subroutine.

Some functionality may be dependent on the product package. Contact your Reseller if you require a license.