Currently, the compiler and runtime system does apply the assignment rules in READ and WRITE.
Example:
...
DCL file DATION INOUT FIXED(15) ...;
...
DCL f1 FIXED(1);
DCL f31 FIXED(31);
...
! convert f1 to FIXED(15)
WRITE f1 TO file;
...
! convert FIXED(15) to FIXED(31)
READ f31 FROM file;
The treatment of STRUCT in READ/WRITE is simplified. Currently the internal representation of a STRUCT is passed directly from/to the dation. The TypeOfTransmission must match exactly to the transferred data type. This is not conform with PEARL90, which states:
Anonymous