Page 1 of 1

how to display headers in each page using SORT utility

PostPosted: Sat Nov 20, 2010 12:34 am
by shankarhosur
how to display headers in each page using the SORT. below is the code. the code is working fine but only thing is it is not displying the headers in page

SORT FIELDS=(1,132,CH,A)
SUM FIELDS=NONE
INCLUDE COND=(34,1,CH,EQ,C'Y')
OUTFIL FNAMES=SORTOUT,
HEADER1=(2:6C'-',10:8C'-',21:9C'-',34:9C'-',/,
3:C'PLAN',10:C'SUB-PLAN',24:C'SSN',34:C'TERM-DATE'),
HEADER2=(2:6C'-',10:8C'-',21:9C'-',34:9C'-'),
LINES=25,
OUTREC=(2:2,6,11:10,6,21:18,9,34:78,8,39C' ')

Re: how to display headers in each page using SORT utility

PostPosted: Sat Nov 20, 2010 1:22 am
by dick scherrer
Hello,

Why has this been posted in the Suggestions & Feedback part of the forum?

Which sort product is used on your system? Post the informational messages from any sort execution including the message ids.

Re: how to display headers in each page using SORT utility

PostPosted: Sat Nov 20, 2010 2:19 am
by Frank Yaeger
HEADER1 is the report header - it is only printed once. HEADER2 is the page header - it is printed at the top of every page. If you want the titles you show in HEADER1 printed on every page, you have to put them in HEADER2, not HEADER1.