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



"MIDRANGE-L" <midrange-l-bounces@xxxxxxxxxxxxxxxxxx> wrote on 01/17/2019
09:11:40 AM:
The table I am copying from is a TABLE. I did not create it from DDS.
That
is the difference. This is how IBM designed SQL on IBM i.

You can use CPYF to copy from an SQL table (which is also a PF) to
either a DDS PF or SQL table -- *if* you don't try to create the target
file using the CPYF command. The reason is because of the SQL long name.
CPYF can't change the SQL long name and, therefore, you'll get duplicate
errors if you try to create the target file in the same library (schema).

What I have done is CPYF or CRTDUPOBJ into QTEMP, use RUNSQL to
change the long name, then MOVOBJ back to whatever library I wanted. But,
this doesn't solve your need for partitions (multiple members). OVRDBF
can point to a particular member and then even SQL without partition
support can access that single member.


Sincerely,

Dave Clark

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.