IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Need help in Creating a Dynamic table in Assembler


IBM Mainframe Forums -> PL/I & Assembler
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2146
Location: At my coffee table

PostPosted: Sat Feb 23, 2008 12:15 am
Reply with quote

bharath_gct2002 wrote:
Thanks much Dick.. I have done the file joins using ICETOOL. But I am not sure of how to do a 2 file match in Assembler. And I doubt If I have to write a seperate program or to have that also in the same program.

If there is any sample Assembler program or code snippet which can explain me how to do a 2 file match that will be really helpful.
Treat the 2-File Match/Merge sample code as psuedo-code....
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Sat Feb 23, 2008 12:31 am
Reply with quote

You're welcome Bharath icon_smile.gif

Try this from above (the embedded link)
Quote:
Treat the 2-File Match/Merge sample code as psuedo-code....
and if there are any questions, post them here. That code will work in many languages.
Back to top
View user's profile Send private message
UmeySan

Active Member


Joined: 22 Aug 2006
Posts: 771
Location: Germany

PostPosted: Wed Feb 27, 2008 2:50 pm
Reply with quote

Hi !

Just two quick ideas.

1.) Whats about doing it the other way round. Read file-2, the big one, and check it against file-2, the small one. Then you read the big one only once.

2.) Whats about loading the data into DB2-Tables first. Then you could use normal Select/Fetch functions with key.

If no db2 installed, you could use VSAM KSDS. I think, this will save time.

By doing this load via another assembler programm, you have the chance to build your own key that would be best for your requirement.

Two or three little efficient programms run faster than one big one.
Also the manipulation of one file could be done quiet earlier than that of the end-of-day file.

Regards, UmeySan
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Feb 27, 2008 11:07 pm
Reply with quote

Hello,

FWIW - a simple 2-file match will perform faster than in-core searches, db2 tables, or vsam files.

Properly done, there should be no reason to read records from either of the "match" files more than once (after both files are placed in the same sequence).
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> PL/I & Assembler

 


Similar Topics
Topic Forum Replies
No new posts Load new table with Old unload - DB2 DB2 6
No new posts Pulling a fixed number of records fro... DB2 2
No new posts Multiple table unload using INZUTILB DB2 2
No new posts Using Dynamic file handler in the Fil... COBOL Programming 2
No new posts Check data with Exception Table DB2 0
Search our Forums:

Back to Top