I like using lines, I like to be able to read the code.
SORT FIELDS=COPY
OMIT COND=(1,80,SS,EQ,C'ted03')
INREC PARSE=(%=(ENDBEFR=BLANKS,
FIXLEN=30,
STARTAT=NONBLANK,
STARTAFT=BLANKS),
%=(ENDBEFR=BLANKS,
FIXLEN=30),
%03=(ENDBEFR=BLANKS,
FIXLEN=30)),
BUILD=(%03)
OMIT has been around a long time, but you might want to look up SS as a
field-type.
PARSE you may not know, but I think you'll be able to follow without the manual
- and if not, there's always the manual.
I think the BUILD is OK too.
Is there anything genuinely obscure here?
On Friday, 5 February 2016 14:36:54 UTC, Paul Gilmartin wrote:
> On Fri, 5 Feb 2016 06:55:25 -0600, Bill Woodger wrote:
>
> >Tom,
> >
> >I think if you use that cat to grep to awk as an example, you'll get
> >confusion from the students. They'll say "why don't you just do it in awk?"
> >or even reel off an obscure Perl one-liner.
> >
> Or DFSORT. /* ( but not in one line.) */
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN