Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

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?

0
Posted

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?

0

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

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.