SOURCELINE argument 1, ("bad number") must be less than or equal to the number of lines in the program (lines)

Synopsis
In calling the SOURCELINE() built-in function, you supplied a line number that was greater than the number of lines in the REXX script. bad number is what you supplied. lines is how many total lines are in the REXX script.

Note: If you use Reginald's OPTIONS 'NOSOURCE', or use the Rexx2Exe utility to create a script compressed of spaces and comments, then you should not call the SOURCELINE() function in your program. Doing otherwise may produce this error.