× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



If the input file contains the following
City    zip
CITY1   A1A1A1
CITY1   A1A1A2
CITY1   A1A1A3
CITY1   A1A1A5
CITY1   A1A1A6
CITY2 B1B1B5
CITY2 B1B1B6

The result he wants is to process this file and summarize by range, which will 
look something like this:
City    Zip Range           Total
CITY1   A1A1A1 - A1A1A3 3
CITY1   A1A1A5 - A1A1A6 2
CITY2   B1B1B5 - B1B1B6 2

Not sure how below can produce this result.

-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx]On Behalf Of fgarcia@xxxxxxxxxxxx
Sent: Tuesday, October 19, 2004 3:26 PM
To: RPG programming on the AS400 / iSeries
Subject: RE: Trivia: How many lines of code are allowed in an RPG
Program?



Then add the follow statement in loop
     select count(*) from zip_file where city=:vciti and zip_code between
:vmin and :vmax


I just was trying to approach other view to the solution.
Regards
Fernando.



As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 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.