I've never experienced this. I just created an SQL table in QTEMP and the
CPYTOIMPF command worked for me.

For the main question, the CPYTOIMPF is working as designed. Since you are
telling it that you want the quote to be delimited and your large string
starts with a quote, it will qualify it with an additional quote as well as
enclose the entire string in quotes.

As others have suggested you can write the file directly to the IFS since
you are already creating the delimited string.

Your other option is to just leave the file as is in QTEMP and use the
CPYTOIMPF command. I would tend to lean towards this method. With V5R4 they
stick with the standards and it's really easy to use.

James R. Perkins


On Mon, Mar 2, 2009 at 11:51, <Blake.Moorcroft@xxxxxxxxxx> wrote:

Hello Rob...

CPYTOSTMF does not work with an SQL generated table. The CL program bombs
as soon as the command is run when it tries to access the table.

Have a good day.


Blake Moorcroft
Developer - Corporate
Russell A. Farrow Limited
1980 Ambassador Drive, PO Box 333, Windsor, Ontario N9C 3R4
Bus: 519-966-3003 ext. 566, Fax: 519-966-9870
blake.moorcroft@xxxxxxxxxx


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.