Author: Bill Woodger
Subject: Reply to: For each given key value, how to keep up to the first n recs
Posted: Sat Nov 12, 2016 2:44 am (GMT 5.5)
If your data is already in order, just use a SEQNUM with RESTART for the key and the INCLUDE= and BUILD on the OUTFIL. Your sequence number should be large enough for the maximum number of cities. One is probably cutting it fine, eight is a bit much :-)
Subject: Reply to: For each given key value, how to keep up to the first n recs
Posted: Sat Nov 12, 2016 2:44 am (GMT 5.5)
If your data is already in order, just use a SEQNUM with RESTART for the key and the INCLUDE= and BUILD on the OUTFIL. Your sequence number should be large enough for the maximum number of cities. One is probably cutting it fine, eight is a bit much :-)