×
The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.
rob@xxxxxxxxx wrote:
Overlaying an array.
D FLWORKREC DS likerec(flworkr)
D pDuh s * inz(%addr(flworkrec))
D duh ds based(pDuh)
D col 15p 4 overlay(duh:39) dim(389)
Rob Berendt
Rob: Maybe I'm a little thick today, but doesn't that code fragment
accomplish what you want?
I guess this all goes back to the decision in DDS not to support
arrays in records. The argument goes that arrays should be
implemented in tables, not within individual rows, in a relational
database (ignoring the fact that some RDBMS's do allow arrays within
rows).
So the question becomes, should a programming language make it easy
to get around a design limitation in the database? One problem is
that any workaround (easy or not) is fraught with certain dangers.
For example, if the field layout happens to change, the overlay may
become invalid.
The bottom line is that if EXTNAME suits your purposes better than
LIKEREC, then continue to use it.
Cheers! Hans
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 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 on our policy page. If you have questions about this, please contact
[javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.