|
I want to read the entire file. How to delete a record is my question. WHich format name do I use. DELET .... A R FLF01 PFILE(VLP01 ) A K VAACCT A K VAINVN A K VABOL A K VAPRO A K VASTAT A R FLF21 PFILE(VLP21 ) A K VAACCT A K VAINVN A K VBABOL A K VAPRO A K VASTAT >> HI I have to use a logical that is > > composed of 2 files (PF), let us call >> it Logfile. > > Presumably because the LF is keyed differently than the underlying PFs? > If not, you can use the underlying PF that you really want to read. > Of course you might be able to create a new LF over the one PF you want, > or use OPNQRYF or SQL... > >> The names of the fields that are > > designated as Keys, are the >> same. > > That's reasonably common. If that poses a problem, you can rename the > individual fields on the I specs. > >> I am not sure as to process this > > in RPG. Do I use the READ LOGFILE >> method, am I going to get all records. > > Is there a better way to obtain the >> data, perhaps via SQL? > > If I understand the situation, you have 2 record formats in a LF and you > only want to read records from one of the underlying PFs. READ with a > record format name will do that. If I didn't guess right, you will need > to post some more specific details about the situation; what did you try > and what results you expected (but didn't get.) > --buck > -- > This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list > To post a message email: RPG400-L@xxxxxxxxxxxx > To subscribe, unsubscribe, or change list options, > visit: http://lists.midrange.com/mailman/listinfo/rpg400-l > or email: RPG400-L-request@xxxxxxxxxxxx > Before posting, please take a moment to review the archives > at http://archive.midrange.com/rpg400-l. > >
As an Amazon Associate we earn from qualifying purchases.
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.