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



Assuming you're writing the secondary file using RPG... Sounds like a record blocking issue to me... if the secondary file you're writing to is a PF, the database records may not be there yet (even though you're past the point in the code where they are written). You may need to issue FEOD (force end of data) inside your program before you call the CL

Greg

-----Original Message-----
From: RPG400-L [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Rick Crow
Sent: Wednesday, August 29, 2018 1:13 PM
To: RPG400-L@xxxxxxxxxxxx
Subject: RE: Issue creating an excel from file in /FREE RPGLE

Assuming that you're creating a CSV, why not just use QCMDEXC with a CPYTOIMPF?

Rick Crow
Programmer/Analyst

O: 419-479-5750
4235 Secor Rd.
Toledo, OH 43623
rcrow@xxxxxxxxxxxxxxxx


www.toledoclinic.com

-----Original Message-----
From: RPG400-L [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of OLD GUY
Sent: Wednesday, August 29, 2018 12:41 PM
To: RPG400-L@xxxxxxxxxxxx
Subject: Issue creating an excel from file in /FREE RPGLE

Hello,

I'm having an issue generating an excel from a file thats created in my RPGLE.
The program displays parts to a user for ordering purpose but they also want an excel copy.
As I write to the subfile I also write to the secondary file.
When the process is finished loading the subfile and just before I display the results to the user I call an external CL that executes a SQL view and emails it to the user.
The problem is that the file contains eg 200 records and the excel sent only has about 100 records.
If I run the SQL on its own I get all 200+ records.

For clarification we use ViewPoint to do our SQL jobs.

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

Please contact support@xxxxxxxxxxxx for any subscription related questions.

Help support midrange.com by shopping at amazon.com with our affiliate link: http://amzn.to/2dEadiD CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.
--
This is the RPG programming on the IBM i (AS/400 and iSeries) (RPG400-L) mailing list To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at https://archive.midrange.com/rpg400-l.

Please contact support@xxxxxxxxxxxx for any subscription related questions.

Help support midrange.com by shopping at amazon.com with our affiliate link: http://amzn.to/2dEadiD

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.