The following COMPARE statement compares the value of A1 to the total number of rows on the screen to determine if all the lines of the screen have been copied:
COMPARE A1,&LINECT BRANCH GT,STOP
If A1 is greater than (GT) the number of rows on the screen, the BRANCH statement directs the program to the line labeled STOP, where the variable LINECT is deleted and the program ends.
|
Copyright © 2013 CA.
All rights reserved.
|
|