With Regina 3.5 under Win XP and Win 7, the instruction (recommended similarly in the Regina Manual 3.3):
address SYSTEM 'Sort' with input stem fdata. output stem fdatb.
always fails if a total of 8 K bytes or more are to be sorted.
Testing has confirmed that (a) the output option of "address" is irrelevant, (b) the same bug occurs with "with input stream (fileid)",
(c) the bug does not appear if input re-direction is not used, e.g. if the stem variable fdata. is first written to a file (variable fin) and
the above instruction is replaced by:
address SYSTEM 'Sort' fin with output stem fdata.
The attached REXX program "IO-Test_SORT.rex" can be used to demonstrate all this.
Log in to post a comment.