I'm no expert! But it occurs to me that perhaps you could use the INREC to put the parsed data into a fixed location and SORT on that location. The use the OUTREC to strip out that inserted data. I have no idea if this is workable or not. I just thought I'd throw it into the ring.
On Tue, Jan 22, 2013 at 11:49 AM, Tony B. AOL Mozilla <[email protected]> wrote: > Calling all DF/SORT experts: Is it possible to parse a field from the input > record (which floats, of course, otherwise we wouldn't be parsing), and use > the located field as the sort sequence? > > For example: > > OUTFIL FNAMES=SORTOUT, > PARSE=(%22=(STARTAFT=C'something',ENDBEFR=C'else)',FIXLEN=10)), > BUILD=(001:%22, the parse field > 011:1,120) other stuff I want > SORT FIELDS=(%22,CH,A) I wish to sort on %22 > > > > Apologies in advance if I failed to locate the capability in the manual. > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to [email protected] with the message: INFO IBM-MAIN -- Maranatha! <>< John McKown ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
