Joined: 27 Apr 2005 Posts: 43 Location: United States
Hi IBM Sort Tools Team,
Could you please show me how to set up a ICEMAN to Read two input files and give a count of how many times the carriage control = '1' for both input files?
Looking for something like this output file
Code:
***************************** Top of Data *
REGULAR BILL COUNT: 0000161
MEMO500 BILL COUNT: 0000066
**************************** Bottom of Data
But this code keeps writing an empty file when I use two input files. Could someone please advise? I have been try different things based on the manual and replies in this forum for 6+ hours and cant get it working right.
Joined: 27 Apr 2005 Posts: 43 Location: United States
Thank you Joerg! It works very well when I use SYSOUT=* for the output & I get both lines. But when I write to a DSN it only writes the 2nd line. How can I refine this to get both lines written to one DSN?
Joined: 08 May 2006 Posts: 1205 Location: Dublin, Ireland
Quote:
Thank you Joerg! It works very well when I use SYSOUT=* for the output & I get both lines. But when I write to a DSN it only writes the 2nd line. How can I refine this to get both lines written to one DSN?
Try using DISP=MOD for the output dataset so the second record doesn't overwrite the first.
Joined: 27 Apr 2005 Posts: 43 Location: United States
Thanks Joerg, I can do that
One last question to perfect it. I want to zero suppress the count of records. I know I need the EDCOUNT parm and found the definition --
EDCOUNT - specifies how the overall count is to be formatted for printing. The following formatting items
can be used (see DFSORT Application Programming Guide for complete details): mask, E'pattern', L'string',
F'string', T'string', LZ and Udd.
I have found no examples using the 'E-pattern' and have tried these and others, but keeps getting code=12 and flagging the EDCOUNT. Do you have any suggestions?