Menu

#438 Support assignement rules in READ/WRITE and correct transfer of STRUCTs  Edit

compiler_V2
open
nobody
None
2026-01-09
2026-01-09
No

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:

  • the data is transferred in the sequence of their definition in the structure declaration
  • the assignment rule apply

Discussion

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB