|
If I understand your problem correctly, you are attempting to use a field from the file once you have read past the end of file. The question is why are you attempting to do this? Do you need to use that field from the last record read? If yes, as each record is read, prior to end of file, move that field to a separate field and use that separate field at end of file. If this is not the reason why you are using this field - please advise.. >>> "Marc Woodbridge" <ikat@dircon.co.uk> 01/20 5:34 PM >>> Hi there, Got this little problem :- SETGT on a file, then READP (using *in70) - now if we run off the top of the file *in70 = on and we bypass the rest of the file. Now, here comes the problem, there is a field from this file (defined as zoned decimal) that is used for calculation later on. If we hit tof (*in70 on), this field will hold hex '40' (spaces), which is wrong - it should hold zeros. No matter what I do to this field it ALWAYS gives a decimal data error. I've tried a bit of code like: *IN70 IFEQ *ON Z-ADD *ZEROS GBBKXV (or) MOVE *ZEROS GBBKXV ENDIF this bit of code works but later on when I want to ADD GBBKXV to another field (packed decimal) I get the error. Anyone got any ideas ?? Cheers Marc ikat@dircon.co.uk * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This is the RPG/400 Discussion Mailing List! To submit a new * * message, send your mail to "RPG400-L@midrange.com". To unsubscribe * * from this list send email to MAJORDOMO@midrange.com and specify * * 'unsubscribe RPG400-L' in the body of your message. Questions should * * be directed to the list owner / operator: david@midrange.com * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This is the RPG/400 Discussion Mailing List! To submit a new * * message, send your mail to "RPG400-L@midrange.com". To unsubscribe * * from this list send email to MAJORDOMO@midrange.com and specify * * 'unsubscribe RPG400-L' in the body of your message. 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-2025 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.