Previous Topic: UDEFINE StatementNext Topic: Substring Notation


SET Statement

The remainder of the program is a loop that copies lines of data from the screen into &DATA until the last line of the screen is reached.

The following command copies 80 characters of screen data (one row) into an element of DATA. As long as the value of A1 is less than or equal to the number of screen rows, the program will copy rows into the array. For example, assume that the screen contains 24 lines. When the program is completed, the first 24 elements of DATA will contain the screen data. Each element will contain 80 characters.

ULOOP       SET DATA(&A1),&SCREEN(&A2,80)