I think I have part if this correct
My sort is:
INCLUDE COND=(1,40,SS,EQ,C'.OUTPUT')
SORT FIELDS=(47,4,CH,A)
I would like to count the records and print the count and todays date to a second file. (snip from the manual)
COUNT FROM(IN3) WRITE(CT3) .... How do I add the date?
//SYSIN DD *
INCLUDE COND=(1,40,SS,EQ,C'.OUTPUT')
SORT FIELDS=(47,4,CH,A)
OUTFIL FNAMES=SORTCNT,REMOVECC,NODETAIL,
TRAILER1=('XXXX.DATA.QREMOTE.DATA.SORT ~',&DATE=(MD4/),
'~',COUNT)
/*