Are you saying that a data structure with the DTAARA keyword without the *AUTO parameter is not a "data area data structure"? Even though it is a data structure related to a data area? I'd argue that they're both data area data structures, and that the *AUTO parm indicates the *INIT and *TERM phases read and write it.
On page 211 of the7.4 RPGLE Reference manual it says
"You can specify the data area operations (IN, OUT, and UNLOCK) for a data area that is implicitly read in
and written out. Before you use a *data area data structure***with these operations, you must specify that
*data area data structure* name in the result field of the *DTAARA DEFINE operation or with the DTAARA
Now I'm wondering about the *USRCTL parameter. If both *AUTO and *USRCTL are specified, that should mean that the data area is read during the *INIT phase, can be read (IN opcode) and written (OUT opcode) at any time after the *INIT phase and before the *TERM phase, and then is written during the *TERM phase.
If *AUTO is specified, but not *USRCTL, what does that mean? Using the IN and OUT opcodes with that data structure is not allowed?
As an Amazon Associate we earn from qualifying purchases.
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.