|
Use the cycle. No need to chain, read, or setll. Just make the file UpdatePrimary and roll through the file. It'll be a 10 line program or there abouts. From: Art Baker <Art_Baker@baan.com> To: "'RPG400-L@midrange.com'" <RPG400-L@midrange.com> Subject: FW: update files Date sent: Wed, 5 Jan 2000 12:38:29 -0500 Send reply to: RPG400-L@midrange.com > Hello, > I looking to update a data file with RPG. Normally I've been using > UPDDTA and changing the records, when required, but in this case there is > over 900 records that needed to be updated. My question is which command to > use, SETLL, READE or CHAIN. There are two things to look for in this file, > DTYPE > and DDSTAT. The DTYPE to look for is JRNL and the DDSTAT to look for is 'A'. > Both JRNL and 'A' need to be true then, change the 'A' to an 'X'. > Thanks for any advice, > Art > +--- > | This is the RPG/400 Mailing List! > | To submit a new message, send your mail to RPG400-L@midrange.com. > | To subscribe to this list send email to RPG400-L-SUB@midrange.com. > | To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com. > | Questions should be directed to the list owner/operator: david@midrange.com > +--- Booth Martin boothm@goddard.edu http://www.spy.net/~booth +--- | This is the RPG/400 Mailing List! | To submit a new message, send your mail to RPG400-L@midrange.com. | To subscribe to this list send email to RPG400-L-SUB@midrange.com. | To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +---
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.