× 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.



DDL (from SQL) supports constraints. DDS does not support constraints.
However, you can add a constraint to either file after the fact with
ADDPFCST.

Create two files, let's say, ORDHEAD and ORDLINE. Have a field with the
same properties in both file. You could call it ORDERNUM or if you like
obscure meaningless names you could call it ORDHEADN in one file and
ORDLINEN in the other file. Then you could
ADDPFCST FILE(ORDLINE) TYPE(*REFCST) KEY(ORDLINEN) PRNFILE(ORDHEAD)
PRNKEY(ORDHEADN)

Multimember files are forbidden. There is a workaround but I really doubt
you have the not free option to do that and I really doubt you have a
field in your file that will act as the member name instead. (They're
called "partitioned tables".)


Rob Berendt

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.