I have multiple Physical files (Trans2006, Trans2007, Trans2008, etc…) with same record layout with the yearly transactions on my iSeries. I want to merge these files (for temporary period). Is it possible to create a Logical file? If so please help me.
Software/Hardware used:
ASKED:
March 12, 2009 10:41 PM
UPDATED:
January 12, 2012 12:32 AM
oops – the link got lost
f=”http://publib.boulder.ibm.com/infocenter/iseries/v5r4/index.jsp”>
I suggest bookmarking this and reading around the subject whenever you have the chance
thanks phil. I created a logical.
Create a “Union” logical file by using the exact same syntax as you would creating a standard logical file but on the PFILE statement, enter BOTH of the file names. You can also qualify the file names on the PFILE statement so that the files do not have to reside in the same library. If your logical has a key though, remember that you will get “dinged” if you have a record in each file with the same key.
Example: PFILE(LIB1/FILE1 LIB2/FILE1)
or if the files are not the same name but in the same library, you can use…..
PFILE(FILE1 FILE2)
You are also not limited to just 2 files. I don’t know the limit off the top of my head, but it’s definitely more than 2.
“dinged”? Sounds exciting, what happpens?