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



Peter,  let me guess, your file was built in qtemp and you're trying to
export it to the ifs.......  It seems IBM wrote these CPYTOSTMF and
CPYTOIMPF using CLI stored procedures. The problem is, SQL won't catalog
objects in QTEMP and these procs blow up when they can't find an alias to
the file in the SQL catalog.  I think this had a PTF....

Eric DeLong
Sally Beauty Company
MIS-Project Manager (BSG)
940-898-7863 or ext. 1863



-----Original Message-----
From: Peter Colpaert [mailto:Peter.Colpaert@xxxxxxxxxxxx]
Sent: Friday, September 12, 2003 7:46 AM
To: RPG programming on the AS400 / iSeries
Subject: Re: User space, outfile or workfile





Hans,

normally I would agree with you, but in this case there are a couple of
things that prevent me from using CPYTOSTMF:

- If there are more than 65000 or so records, Excel won't import the CSV;
- When I try to run CPYTOSTMF, I get an SQL error:

                         Additional Message Information


 Message ID . . . . . . :   SQ99999       Severity . . . . . . . :   30

 Message type . . . . . :   Diagnostic
 Date sent  . . . . . . :   12/09/03      Time sent  . . . . . . :
14:43:42

 Message . . . . :   Error Occurred in SQL Call Level Interface

 Cause . . . . . :   You have issued a procedure call that encountered an

   error.  The error code is 10. Error codes are as follows:
     -- Error type 3 is program type out of range.
     -- Error type 4 is SQL data type out of range.

     -- Error type 9 is argument value not valid.

     -- Error type 10 is function sequence error.

     -- Error type 12 is transaction operation state not valid.

     -- Error type 13 is memory management problem.

     -- Error type 14 is maximum number of handles allocated.

     -- Error type 15 is no cursor name available.
     -- Error type 16 is handle type for operation not valid.


More...

- I want to make it as user-proof (fool-proof) as possible ;-)

Thanks,

Peter







                                                     Maybe I'm missing
                                                     something fundamental,
                                                     but doesn't the
                                                     CPYTOIMPF
                                                     write out in CSV
                                                     format, and doesn't
                                                     Excel read CSV files?

                                                     Cheers! Hans





      ______________________________________________________________________
   The information contained in this communication is confidential and may
   be legally privileged. It is intended solely for the use of the
   individual or the entity to whom it is addressed and others authorised
   to receive it. If you have received it by mistake, please let the sender
   know by e-mail reply and delete it from your system.
   If you are not the intended recipient you are hereby notified that any
   disclosure, copying, distribution or taking any action in reliance of
   the contents of this information is strictly prohibited and may be
   unlawful.
   Honda Europe NV is neither liable for the proper and complete
   transmission of the information contained in this communication nor for
   any delay in its receipt.



_______________________________________________
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.