I'm having a field which will have variable values or no values. The field is
Ws-var = "12 11 87 98"
Here "12 11" needs to be one pair and "87 98" should be the other pair. The variable is dynamic and might contain more sets of such pairs. As of now I wrote the COBOL code as
Unstring ws-field delimited by space into
Ws-temp1,ws-temp2,ws-temp3,ws-temp4.
These values will be further used for processing as pairs only. This code will work when there are 2 pairs of values. But, if conditions change in future to require more such pairs, I thought of implementing with an array, moving each pair to a output field, and reading the next pair. Can you suggest ways to implement it?