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



Jim,
Let me try some suggestions to your inquiries in a "back-to-front" fashion :

For CPYF, check the MBROPT(*UPDADD) parameter and option to see if it can be
applied to your case. If your files have UNIQUE keys, this could apply
(albeit maybe wit a hit in performance) .

Create a SQL view with UNION ALL.

That said, maybe a RPG program would be a simple solution.

Regards,

Luis Rodriguez
IBM Certified Systems Expert — eServer i5 iSeries


On Thu, Jun 17, 2010 at 9:21 AM, Rubino, Jim <Jim.Rubino@xxxxxxxx> wrote:

I have the need to create some yearly historical physical files of data,
SALES05, SALES06, SALES07, SALES08, SALES09, SALES10 (the numbers being
the year).
We need the data in all of these files combined into one physical file
called ALLSALES. We have created the previous years files and do not
need to recreate them, 09 and before but we will need to recreate the
current year each night. The problem is the newly recreated 10 file
being combined into the ALLSALES PF.

My questions are:
First is there an easy way to combine all of these files into one PF
besides doing the following - CLRPFM ALLSALES, CPYF SALESxx *ADD to
ALLSALES for each of the files?
Secondly is there an easy way to only add the newly added records to the
ALLSALES from the SALES10 file each night?
Thirdly is there an easy way to do all of this?

Thank you for any and all help,

Jim Rubino
Senior Programmer, Team Lead
FIKE CORPORATION (r)
704 South 10th Street
Blue Springs, Mo. 64015
In Y memory of Max -
* Direct Dial - (816) 655-4579
* Or - (816) 229-6216 Ext. 1079
* Jim.Rubino@xxxxxxxx

--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-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.