Hi all, I am taking a file and using PUSH and OVERLAY to condense multiple input lines into a single line. That all works fine and I even get the correct format output when I use OPTION COPY or SORT FIELDS=COPY.

However, I want to sort on my OVERLAY area fields, but I get an error message ICE218A 3 117 BYTE VARIABLE RECORD IS SHORTER THAN 138 BYTE MINIMUM FOR FIELDS

Because my input is a VBA file (out of my control), some of the records are much shorter than my SORT FIELDS location.

What do I need to do to use SORT FIELDS=(...) here? Do I need to just overlay the unneeded columns at the beginning of the record? All my sort keys will be shorter than the shortest record in the file, but I expected that by using INCLUDE statements to only keep the long records I needed, I would not run into this.

My control cards say
OPTION VLSCMP
SORT FIELDS=(set1,set2, set3)
INCLUDE COND=...,OR, ...
INREC with multiple IFTHEN and PUSH and OVERLAYs
OUTFIL VTOF, INCLUDE,BUILD

There must be something simple I am missing (and there will be another question tomorrow if I get this fixed).

Thank you and best regards,
Billy Ashton

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to