View previous topic :: View next topic |
Author |
Message |
rasprasads Beginner
Joined: 10 Dec 2002 Posts: 59 Topics: 20 Location: Chennai
|
Posted: Mon Aug 23, 2004 3:46 am Post subject: Internal Table Vs Files |
|
|
Hi -
I have 2 files output from my program : A and B. B has unique records and A has multiple records. Now in the same program i need to make changes in such a way to output all records that are available both in A and B. Can i do a sequential compare logic (since both files are sorted) or can i load the records form file B into a working storage table and use a "SEARCH ALL" to compare ?
________
Thanks _________________ Rasprasad S |
|
Back to top |
|
|
MikeBaker Beginner
Joined: 04 May 2004 Posts: 96 Topics: 9
|
Posted: Mon Aug 23, 2004 6:26 am Post subject: Why kill yourself trying to figure out the logic? |
|
|
Why not make your job dead easy by doing what you want in a DFSORT step immediately after executing your program? It will take you five minutes. And then you can feed the file to where-ever it is that you want it to go. |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12369 Topics: 75 Location: San Jose
|
|
Back to top |
|
|
Vodkasoda Beginner
Joined: 23 Jan 2004 Posts: 19 Topics: 6 Location: Dublin
|
Posted: Wed Aug 25, 2004 9:35 am Post subject: |
|
|
Rasprasads,
Sorry if this sounds a little condascending, it's not supposed to ... but try not to make your programs too complicated !!!
Remember that yourself, or somebody else, will probably have to update this program sometime in the future, and the last thing that they will want to find is a program that is horrendously difficult to understand !!!
Cheers,
VodkaSoda |
|
Back to top |
|
|
|
|