MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Internal Table Vs Files

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
rasprasads
Beginner


Joined: 10 Dec 2002
Posts: 59
Topics: 20
Location: Chennai

PostPosted: Mon Aug 23, 2004 3:46 am    Post subject: Internal Table Vs Files Reply with quote

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
View user's profile Send private message
MikeBaker
Beginner


Joined: 04 May 2004
Posts: 96
Topics: 9

PostPosted: Mon Aug 23, 2004 6:26 am    Post subject: Why kill yourself trying to figure out the logic? Reply with quote

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
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12369
Topics: 75
Location: San Jose

PostPosted: Mon Aug 23, 2004 8:03 am    Post subject: Reply with quote

Rasprasads,

If the files are sorted then why do you even want to load the records into an internal table and later use search all ? While matching the keys itself you can handle the duplicates.

Take a look at this topic for match logic.

http://www.mvsforums.com/helpboards/viewtopic.php?t=11&highlight=match

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Vodkasoda
Beginner


Joined: 23 Jan 2004
Posts: 19
Topics: 6
Location: Dublin

PostPosted: Wed Aug 25, 2004 9:35 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group