|
This is best done with an SQL statement, unless you feel the need to write an RPG for this. If you don't have the SQL licensed program, WRKDBF will do this for you nicely. See http://www.wrkdbf.com <http://www.wrkdbf.com> . William K. Reger Senior Project Manager Levitz Furniture Corporation Phone: (561) 994-5114 E-mail: breger@levitz.com <mailto:breger@levitz.com> -----Original Message----- From: Art Baker [mailto:Art_Baker@baan.com] Sent: Wednesday, January 05, 2000 12:38 PM To: 'RPG400-L@midrange.com' Subject: FW: update files 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 +--- +--- | 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.