|
Does the input file have every possible Canadian zip code in it? Why is the range T4A1A1 - T4A1B3 valid but T4A1A1 - T4A1D3 is not? Does (or could) zip code T4A1A5 exist? What was the logic you used to accomplish the task for good ole' U.S. zip codes? Have you tried, or has someone else suggested, reading the input file in zip code sequence, and doing level break processing when the city name changes? L1 detail time = beginning of a new range. L1 total time = end of the range. db > -----Original Message----- > From: rpg400-l-bounces@xxxxxxxxxxxx / fkany@xxxxxxxxxxxxxxxxxx > Sent: Tuesday, October 19, 2004 3:15 PM > > I'm trying to group/range Canadian zip codes. > > Here's how I want to range the Canadian zip codes: > Program reads an Input file similar to this(zip codes are real, > city1-city4 > do not exist ;-): > CITY1 T0B0Z0 > CITY2 T0A0A0 > CITY3 T0A0C0 > CITY4 T4A1A1 > CITY4 T4A1A2 > CITY4 T4A1A3 > CITY4 T4A1B1 > CITY4 T4A1B2 > CITY4 T4A1B3 > CITY4 T4A1D1 > CITY4 T4A1D2 > CITY4 T4A1D3 > > Output file: > Program needs to group/range the zip codes like this: > CITY1 T0B0Z0 - 000000 > CITY2 T0A0A0 - 000000 > CITY3 T0A0C0 - 000000 > CITY4 T4A1A1 - T4A1B3 > CITY4 T4A1D1 - T4A1D3 > > Frank
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.