I have to create a text file of 49-byte records (lines) in a fixed format, to create an interface between two systems. I build it in memory and it looks like the sample below. 122998 720095 100109 00006000 3 ACH 123472 541099 100109 00050216 1 201 123473 541099 100109 00047164 1 201 123534 527401 100109 00000777 1 201 123593 527401 100109 00024206 1 201 123606 548187 100109 00009111 0 COUPON ONLY 123611 548187 100109 00005221 0 COUPON ONLY 123638 551670 100109 00352098 1 101 Before I write it to disk, I want to sort it on that first six-digit number in positions 1-6. I looked up the documentation of "sort" and thought that the "skip" option is used for fixed-format lines, with the number after the data name being a number that indicates the size of the line. So I coded: sort/skip PYIMPORT-FILE 49 The script returns a message of "Invalid argument: 49." Is it possible to sort a fixed-format text file of non-REBOL data? Thank you. Steven White City of Bloomington 1800 W Old Shakopee Rd Bloomington MN 55431-3096 USA 952-563-4882 (voice) 952-563-4672 (fax) [email protected]
-- To unsubscribe from the list, just send an email to lists at rebol.com with unsubscribe as the subject.
