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

Our Slipstream product has exactly the functionality you describe and it
employs the user space method. I'm confident this will be the most efficient
and certainly  we have not had any performance problems as a result of this
technique.

Incidentally, the limit on the maximum number of rows varies depending on
the Excel/BIFF version you're implementing:

    -    BIFF5 limit is 16383 (x'3FFF')
    -    BIFF8 limit is 65535 (x'FFFF')

Best of luck - creating Excel is a LOT more complex than creating CSV,
believe me!

Pete

www.ariadnesoftware.co.uk

----- Original Message ----- 
From: "Peter Colpaert" <Peter.Colpaert@xxxxxxxxxxxx>
To: <RPG400-L@xxxxxxxxxxxx>
Sent: Friday, September 12, 2003 8:28 AM
Subject: User space, outfile or workfile


>
>
> Hi group,
>
> I'm trying to make a general purpose utility which will copy any PF into
an
> XLS file in the IFS (using some java class behind the screens). When it's
> finished, I will probably make it available to the public on my new
website
> (yet to be developed).
>
> In order to determine the field types (alpha or numeric) for the XLS, I
see
> three possibilities:
>
> * Using the QUSLFLD API to a user space, and loop through that for every
> record
> * Doing a DSPFFD into an outfile in QTEMP and loop through that for every
> record
> * Using the QUSLFLD API, read it once, write the fieldname and data type
to
> a workfile in QTEMP, and loop through that for every record
>
> Considering that the files can be rather large (I think I will make the
> program automatically create a new sheet when the row counter reaches
65000
> or whatever the limit in Excel is), performance may be an issue.
>
> Can anybody tell me which would be the fastest of the 3?
>
> I know I could code the 3 versions and run performance tests, but I'd hate
> to hear someone say later on: 'Oh, but I could have told you in advance
> that xxx would be much faster.'
>
> Thanks in advance.
>
> Peter Colpaert
> Application Developer
>
> Honda Europe NV
> Langerbruggestraat 104
> B-9000 GENT
> Belgium
> Peter.Colpaert@xxxxxxxxxxxx
> Tel: +32 9 2501 334
> Fax: +32 9 2501 231
> ----------
> Yoda of Borg are we: Futile is resistance. Assimilate you, we will.
> ----------
>
>
>
> ______________________________________________________________________
> 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 ...

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.