|
What about adding the change code to the key structure? Jeff Stevens Mize, Houser & Co. P.A. 913 451 1882 JStevens@xxxxxxxxxxxxxx "Vijaykrishna_Malladi" <Vijaykrishna_Malladi@xxxxxxxxxxx> Sent by: rpg400-l-bounces@xxxxxxxxxxxx 07/07/2005 05:39 PM Please respond to RPG programming on the AS400 / iSeries <rpg400-l@xxxxxxxxxxxx> To <RPG400-L@xxxxxxxxxxxx> cc Subject A critical Query on OPNQRYF Hi, I have a tricky situation: I have a employee history file in which, EMPLOYEE#, CHANGE DATE, CHANGE TIME are key fields. Now if I use OPNQRYF with CHANGE DATE and CHANGE TIME as key fields, In the RPGLE program, will I retrieve the records in the Arrival sequence order for the same values of the CHANGE DATE and CHANGE TIME? This order is very important to me because we have a field - change code which as 'B' or 'C' values for before image and after images. We have to compare these records by reading the file sequentially for the same value of Date and Time. Any solutions would be highly appreciated. Thanks in Advance, Regards, Vijay Krishna
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.