The maximum number of distinct PERFORM ranges in a program is 65535 .
This limit doesn't apply to .NET programs.