John Reda wrote in reply to Sam Knudson:
>The following sort control cards should provide what you are looking
>for. It simply prints one line per record length and provides the
>number of records with that length. You can add headers if you want
>a more formal report.
>SORT FIELDS=(5,2,CH,A)
>INREC FIELDS=(1,4,1,2,X'00000001')
>SUM FIELDS=(7,4,BI)
>OUTREC FIELDS=(1,4,5,2,BI,C' ',7,4,BI)
Brilliant. We have had HISTOGRM for years, but it shows record
lengths only within a range, which must be at least 4.
Sample Histogram:
COUNT MIN MAX
3 16 19
3 24 27
5 44 47
Sample with new control statements:
19 3
25 3
44 1
46 1
47 3
Totals are the same, but the exact record
lengths are totaled, not an arbitrary range.
Gene Lynd
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html