Dataset1:contains field contains length 3
Dataset2:contains field contains length 3
DS1:
1,308,aaaa
1,308,aaaa
1,308,aaaa
2,309,cccc
2,309,cccc
2,309,cccc
2,309,cccc
DS2:
1,308,aaaa
1,308,aaaa
2,309,cccc
2,309,cccc
I have taken the count for two datasets:
SORT FIELDS=COPY
OUTFIL FNAMES=OUTPUTF1,REMOVECC,NODETAIL,
INCLUDE=(3,3,CH,EQ,C'308'),
TRAILER1=(1C'RECORD COUNT: ',COUNT=(M11,LENGTH=20))
OUTFIL FNAMES=OUTPUTF1,REMOVECC,NODETAIL,
INCLUDE=(3,3,CH,EQ,C'309'),
TRAILER1=(1C'RECORD COUNT: ',COUNT=(M11,LENGTH=20))
OUTFIL FNAMES=OUTPUTF1,REMOVECC,NODETAIL,
INCLUDE=(3,3,CH,EQ,C'308'),
TRAILER1=(1C'RECORD COUNT: ',COUNT=(M11,LENGTH=20))
OUTFIL FNAMES=OUTPUTF1,REMOVECC,NODETAIL,
INCLUDE=(3,3,CH,EQ,C'309'),
TRAILER1=(1C'RECORD COUNT: ',COUNT=(M11,LENGTH=20))
DS1:
Record count for 308 is 3
Record count for 309 is 4
DS2:
Record count for 308 is 2
Record count for 309 is 2
My requirement to take unmatched count to store in new dataset need jcl
ie)whole row for 308 remaining 1 record and for 309 remaining two records to store in new dataset. Please help me.Thanks in advance.