I have a production job which until recently performed as expected, using ICETOOL to compare today's file with yesterday's file, and write out a file of today's records which have changed from yesterday (other than changes to the date and a file identifier). Within the last couple of weeks, the results have been inconsistent, as sometimes the change file contains only the changed records as expected, while sometimes it contains basically all of the new file records, whether they have changed or not.
I recently ran this ICETOOL step in test within 15 minutes of each other, getting results from the third step which looked like this
Run 1 (as expected):
ICE055I 0 INSERT 83422, DELETE 83422
ICE054I 0 RECORDS - IN: 165429, OUT: 165429
ICE227I 0 CHGFILEO : DELETED = 164705, REPORT = 0, DATA = 724
ICE228I 0 CHGFILEO : TOTAL IN = 165429, TOTAL OUT = 724
Run 2 (everything):
ICE055I 0 INSERT 165253, DELETE 165253
ICE054I 0 RECORDS - IN: 165429, OUT: 165429
ICE227I 0 CHGFILEO : DELETED = 82874, REPORT = 0, DATA = 82555
ICE228I 0 CHGFILEO : TOTAL IN = 165429, TOTAL OUT = 82555
I have noticed that when the job works as expected, I get a ICE752I message with DYN = x y, where x and y are two numbers, but when it doesn't work as expected, x and y are both zero.
We have other jobs which use the same basic code, with different input files, and they all seem to be working fine.
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
This might be caused by the system restriction related to concatenation that I've mentioned before on this board that's documented in the second bullet at:
I tried the job with changes as you suggested, but am still having inconsistent results. With the test files I am using sometimes I get 724 records in CHGFILEO (which is the number I expect), and sometimes I get 82,555 records in CHGFILEO. This is running the exact same JCL with the exact same input files.
The only other thing I have noticed is that for runs where I get 82,555 records in CHGFILEO, I also get the following message displayed:
ICE080I 0 IN MAIN STORAGE SORT
This message does not appear in the runs when I get 724 records.
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
In order to analize this kind of thing, I'd need to see exactly you're doing and what results you're getting. This is NOT the kind of thing we can do on a helpboard. If you like, add the following to your job:
//SORTDIAG DD DUMMY
and send the JES, TOOLMSG and DFSMSG output for a "good" run and a "bad" run to me offline (yaeger@us.ibm.com) and I'll take a look. Please put "DFSORT" somewhere in your Subject line to catch my attention.