if datatype(lastline) = NUM

This line uses the datatype REXX function to test the value of the lastline REXX variable. If lastline contains a numeric value, the user has entered a valid repetition factor and the macro continues. If not, an error message is displayed and the macro ends.


o Using the IF Statement in Editor Macros
o Using REXX Functions in Editor Macros