|
Check the vaiable definition of the PLIST of all the called program to make sure that they match the *ENTRY PLIST of the called program. This may sound unrelated but a mismatch in parameter definition can cause unpredictable result like yours. Denis Robitaille Cascades Inc 819 363 5187 fax 819 363 5177 DRobitaille@cascades.com >>> "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-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.