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



An extra step for constraints? That's what custom create commands are for.
:-))

I'll stick with DDS. At least I can read it.

Paul Nelson
Office 512-392-2577
Cell 708-670-6978
nelsonp@xxxxxxxxxxxxx


-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of rob@xxxxxxxxx
Sent: Wednesday, October 26, 2011 2:45 PM
To: Midrange Systems Technical Discussion
Subject: RE: Dumb SQL question

I think someone else explained why a cpyf might fail. But in general if
you have the "parent" in PRTMST prior to copying the "child" into this
file you should have no problem with cpyf. This would be no different
than a DDS file with ADDPFCST added to it. Don't blame it on DDS versus
DDL. Blame it on people tired of having garbage in their data files. One
of the things DDL brings to the table is you can define it with one source
and you do not need to have DDS AND a "make" that adds the ADDPFCSTs.

If someone created a PF file with DDS and put UNIQUE on it would it be
their fault that your CPYF failed because it no longer allowed duplicate
keys in the item master? Don't laugh - I know of an ERP vendor that
doesn't use UNIQUE on any PF's or LF's. All file editing is supposed to
be done with their RPG code. And, yes, occasionally we get duplicate keys
after mergers and acquisitions. Our fault, true - however, a little iron
work (file constraints) would do wonders to prevent that.


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.