|
> I got a file that contains a ZONE decimal field. I also got a > sub-procedure that accepts one parm and this parm is declared with the > LIKE keyword that reference the ZONE field in the file. The problem is > that the compiler keeps create the field as pack. Any idea? I'm guessing that you're writing your program in RPG...? You didn't say. RPG always defaults fields to "packed" when they're brought in from a file. (It always has done this, in both RPG III and RPG IV on the AS/400) The easiest fix is to simply define the field as "zoned" in a D-spec in your program. Another way (which helps preserve the benefits of using an externally defined file) would be to bring in the field definition using an externally defined data structure...
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.