The following UDEFINE statement defines an array variable named DATA:
UDEFINE DATA(50),80
An array is a variable that can contain many different values, each of which can be stored and retrieved separately. This array has been defined as having 50 elements, meaning that it can contain 50 different values. Each element can contain up to 80 characters. In the variable name, the elements are specified by number. For example, DATA(1) refers to the value in the first element, DATA(2) refers to the value in the second element, etc.
DATA will contain the screen data. The definition of DATA assumes that the screen being copied consists of no more than 50 lines, and that the lines contain no more than 80 characters.
|
Copyright © 2013 CA.
All rights reserved.
|
|