Re: Can't sort variable length records using mfsort




"ari" <unikoski@xxxxxxxxx> wrote in message
news:1168964899.292481.225690@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I am evaluating the use of microfocus' mfsort under linux.

I created a variable length file with a cobol program as follows:

[snip]
RECORD IS VARYING IN SIZE FROM 1 TO 32760
[snip]

The programs runs happily, and creates a file called VBFILE with the
128 byte header as described in microfocus documentation.

I then try and sort the file using mfsort - I tried doing:

mfsort use VBFILE ORG SQ RECORD V,1,100 GIVE out.out RECORD V,1,100

and got the following error message:

SORT013U: I/O error on dataset 'VBFILE'
SORT014U: Status = 9/139
SORT020U: SORT(EXTSM) failed - sort engine status = 9/139

I have tried lots of variations on the command, but to no avail - all I
ever get is the above message. What am I doing wrong?

The record size doesn't match the file.

I ran it using MFSORT under DOS and, while
I got it to run the results were confusing, because
the output file was shorter than the input.

I broke it into three parts:
USE VBFILE RECORD (V,1,32760)
GIVE OUT
SORT FIELDS (1,100,CH,A)



.