iSeries / AS400 FAQ : (Category) Programming : (Category) RPG : I have fields defined as zoned in my file. But the compiler listing reports them as being packed, why?
The RPG compiler will automatically convert ZONED data being input from an externally defined file into PACKED, unless you specifically tell it that you want your field to be zoned. This is not a new feature of RPG IV… It did this in RPG III as well. This just didn’t cause as many conflicts because ZONED was so rarely used in RPG III. A simple workaround is to pull your file into an externally described data structure.
Related Questions
- iSeries / AS400 FAQ : (Category) Programming : (Category) RPG : I have fields defined as zoned in my file. But the compiler listing reports them as being packed, why?
- iSeries / AS400 FAQ : Programming : RPG : I have fields defined as zoned in my file. But the compiler listing reports them as being packed, why?
- iSeries / AS400 FAQ : (Category) Programming : (Category) RPG : What is the file information data structure?