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



Sure that long name can be a pain; and for CRTDUPOBJ too [¿still?]. But of course the OP wanted CRTFILE(*NO) according to the given scenario. Also the long name issue should be easily resolved now with the new RUNSQL; likely via CREATE TABLE, though possibly to RENAME TABLE of the file in QTEMP which is then MOVOBJ back to the intended library.

So if I am too lazy to code the column-list or to code the dynamic SQL to do what I want, then the CPYF still serves a useful purpose for when the SQL is not as generous.

Regards, Chuck

On 06 Mar 2013 14:05, Buck Calabro wrote:
On 3/6/2013 4:30 PM, Stone, Joel wrote:

Just curious why not use cpyf? <<SNIP>>

Try this:
create table qgpl.quitethelongtablename (text char(50))
cpyf QUITE00001 qgpl/quitebk crtfile(*yes)
Yoink! CPF327E Alternative name for file QUITEBK not allowed.
<<SNIP>>
Michael Ryan on Wednesday, March 06, 2013 9:21 AM wrote:

I need to insert corresponding columns from TableB into TableA.
TableB has more columns than TableA. All the rows will be inserted.
I need the equivalent of CPYF FMTOPT(*MAP *DROP). I don't want to
specify all the column names if I don't have to. Any ideas?


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.