RPG/400 does not support more than 254 subroutines.
40
Cause . . . . . : RPG/400 supports a maximum of 254 subroutines per program.
Recovery . . . : Reduce the number of subroutines and compile again.