|
Is there any way of knowing how "not very efficient" this choice is? I know that when I use UP and take off the K in the file spec these programs are stunningly fast. Does Barbara have any info to share on UP to a sequential file vs. a roll-your-own-cycle job? _______________________ Booth Martin boothm@earth.goddard.edu http://www.spy.net/~booth _______________________ Jim Langston <jlangston@conexfreight.com> Sent by: owner-rpg400-l@midrange.com 01/05/2000 01:09 PM Please respond to RPG400-L To: RPG400-L@midrange.com cc: Subject: Re: FW: update files FMyFile UP E DISK C If DType = 'JRNL' And DDStat = 'A' C Eval DDstat = 'X' C Update MyFile01 Assuming: file name is MyFile and record layout is MyFile01 That will do it for you. This will read through every record in MyFile and update as per your specs. This is not very efficient, however, as it does have to read through every record. It does this because the file is opened as the Primary file, and uses the RPG cycle. +--- | 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.