You could create a trigger program on SALES10 which adds the records to
ALLSALES.
So you'll only need to build ALLSALES once, subsequent records added to
SALES10 will also be added to ALLSALES via the trigger program.
http://publib.boulder.ibm.com/infocenter/iseries/v5r4/index.jsp?topic=/dbp/rbaforzahftrb.htm
"Rubino, Jim" <Jim.Rubino@xxxxxxxx>
Sent by: midrange-l-bounces@xxxxxxxxxxxx
17/06/2010 14:51
Please respond to
Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
To
<midrange-l@xxxxxxxxxxxx>
cc
Subject
Creating files and then combining them into one PF
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.