If the field names in the D1DS data structure are the same as the field names in the display D1 then there would be no reason to move them into the data structure. EXFMT has done that already.
What I've done sometimes is to also name two Standalone fields (Freshdata & NewData) with a long field length, like 1024. Then just before an Exfmt I can EVAL FreshData = D1DS and immediately after the EXFMT I can EVAL NewData = D1DS. You could use two data structures for before and after if you wanted to, instead. If I am worried about a record being changed at another workstation and need to compare the data at Update time I'd also fill a standalone field named OriginalData at the time I chained for the original record.
I cannot seem to move a display file record into a similar data structure without having to move the fields individually. I've tried both a MOVE and an EVAL, such as EVAL D1DS = D1, where D1DS is the data structure and D1 is the display file record format. It will not allow a compile.
||"Bob Luebbe" <bluebbe@LINOMA.COM>
Sent by: email@example.com
04/25/2001 09:04 AM
Please respond to MIDRANGE-L
Subject: Moving display file record into a data structure
This mailing list archive is Copyright 1997-2019 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available here. If you have questions about this, please contact