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



Hi, Jim:

Do you have just a single set of programs, and you issue overrides, such as:
OVRDBF FILE(SALES) TOFILE(library/SALES05)
or
OVRDBF FILE(SALES) TOFILE(library/SALES06)
etc.
when you want to process just that one month's worth of data?


Consider using a multi-member physical file (and logical files).

If you have SALES05, SALES06, etc. as members of a single SALES physical file, then you can issue:
OVRDBF FILE(SALES) TOFILE(library/SALES) MBR(*ALL)
when you want to process ALL of the data in all of the members.

Of course, you would then also need to issue:
OVRDBF FILE(SALES) TOFILE(library/SALES) MBR(SALES05)
or
OVRDBF FILE(SALES) TOFILE(library/SALES) MBR(SALES06)
etc,
when you want to process just a single month's worth of data.


Another alternative is to create a single "join logical file" to join all of the individual sales files into a single "ALLSALES" view, rather than copying all of the data into a separate physical file member.

Does that help?

Mark S. Waterbury

> On 6/17/2010 9:51 AM, Rubino, Jim 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


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.