Thanks John, for the tip. You're sure closer to expert than I. Sri
answered in detail but your direction was spot on. Again, embarrassment
that I couldn't RTFM this myself.
I've done quite a bit of OUTFIL OUTREC work but this is my first INREC
example. It sure will come in handy in the future.
On 1/22/2013 12:05 PM, John McKown wrote:
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
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN