|
Hello Nelson, You wrote: >I'm writing & updating records to a file with the Force Write Ratio set to >*NONE and then on the next line in the program chaining out to it to see >what the trigger did to certain fields and it works fine. I was wondering >if this was why it works ok and is this behavior job related. In other >words, is the file buffer part of the job or attached to the file? If a >program in another job stream was trying to access that same record would >it find it in the buffer also, or only be able to get it from disk? (I'm >assuming here the record is still in the buffer and has not yet been >written to disk.) It doesn't have to be written to disk. It does have to be in main storage. The AS/400 and S/38 have always worked this way. The buffer is part of the program. Data in the program buffer are not visible to other jobs -- also not visible to a journal but that's another surprise for the unwary. You are CHAINing to the record, therefore you are using keyed processing, therefore you have a buffer size of one, therefore the record is NOT in the buffer ('cause the buffer is automatically flushed when it is filled on a write or update), therefore the changes are visible when you fetch it again. (Simple description but accurate enough for this discussion.) Regards, Simon Coulter. -------------------------------------------------------------------- FlyByNight Software AS/400 Technical Specialists http://www.flybynight.com.au/ Phone: +61 3 9419 0175 Mobile: +61 0411 091 400 /"\ Fax: +61 3 9419 0175 mailto: shc@flybynight.com.au \ / X ASCII Ribbon campaign against HTML E-Mail / \ --------------------------------------------------------------------
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.