PDA

View Full Version : RPG IV and compile listings



Guest.Visitor
09-05-2002, 11:53 AM
To whom it may concern, I have a RPG IV program that updates (using the UPDATE opcode) a bunch of files. One of the files has 200+ fields. Is there a way I can tell from the compile listing OR any other method, which fields from this file are actually being changed or updated ? Please let me know if this does not makes sense. Thank you. Jim Sovick

David Abramowitz
09-05-2002, 11:53 AM
Interestingly, if you use the EXCEPT opcode to update files, and have internalized "O" specs with only a few fields on them, the remaining fields will appear with **NOT UPDATED** (or similar) on the compile listing. Suffice it to say, that in practice at least, the UPDATE opcode rewrites the entire record. If the CLEAR or RESET opcodes were not issued first, the existing values are used. Dave