Sorting records in the Working Storage
Posted: May 6th, 2018, 5:16 pm
I defined a WS with an only record occurring 100 times.
I started clearing the WS, but what I really wanted was the empty the records, that is, having no records at all.
Apparently they cannot be emptied, because when I move some values to the first, second, third records, etc, and then, when I sort the WS,
sort(WS_REC using WS01_DIASETOR);
it sorts the records, but puts the blank ones at the head of the list.
Is there a way to start the WS with no records in order to be able to use the sort function?
I started clearing the WS, but what I really wanted was the empty the records, that is, having no records at all.
Apparently they cannot be emptied, because when I move some values to the first, second, third records, etc, and then, when I sort the WS,
sort(WS_REC using WS01_DIASETOR);
it sorts the records, but puts the blank ones at the head of the list.
Is there a way to start the WS with no records in order to be able to use the sort function?