Page 1 of 1

getting the rec count and date

PostPosted: Wed Jan 29, 2020 1:40 am
by richj
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?

Re: getting the rec count and date

PostPosted: Thu Jan 30, 2020 10:38 pm
by richj
I guess Count is part of ICETOOL not ICEMAN. I got the count to a second file in a second step.

Still looking for the date.

Re: getting the rec count and date

PostPosted: Wed Feb 05, 2020 9:14 pm
by richj
This worked : the key was "NODETAIL" on the OUTFIL


//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)                                                          
/*