|
All of these fields are defined on the D-spec using the Like Keyword. This seems to be a problem that has just popped up recently. These programs were last created back in August 1999 without any of these problems. Thank you for your responses. John P Carr <jpcarr@tredegar.com> on 12/07/99 03:20:25 PM Please respond to RPG400-L@midrange.com To: RPG400-L <RPG400-L@midrange.com> cc: (bcc: Brian Ellis/OTC) Subject: Re: Internal numeric variable defined with LIKE Keyword off of e xternal files Are these fields being defined with the *LIKE DEFN function on a Cspec ? If Yes, This doesn't work for Numeric's . Never Did. No matter what type numeric is used as the base field, the NEW field will be packed. Period. Use RPGIV and the Dspec LIKE keyword. It really works. You would never have a problem with this EXCEPT if you use it as a parm (instead of the old field.) Hope this helps Fun Facts to know and tell John Carr From: bellis@bellis on 12/07/99 03:36 PM To: RPG400-L@RPG400-L@midrange.com@SMTP@EXCHCONNECT cc: Subject: Re: Internal numeric variable defined with LIKE Keyword off of external files I forgot one important detail on this. The actual fields are being defined unlike the database field. The reason this is a problem is that these fields are used as parameters on either procedures or program calls. The either will not compile or run correctly because of type mismatches on the parameters. Hope this clears up the issue a little better. +--- | 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 +--- +--- | 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 +--- +--- | 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.