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 

Update IAM Files

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


Joined: 27 Aug 2007
Posts: 102
Topics: 42
Location: Chennai

PostPosted: Thu Jul 03, 2008 9:28 am    Post subject: Update IAM Files Reply with quote

I have two IAM files File1 and File2. File 2 is the continuation of File1. Since the files were too large, we split them into 2 files.
My program needs to update some records in the files. Is it possible to give the two IAM files in a Single DD and do a random select on a particular record by giving the key and then update that record?
_________________
Thanks
Back to top
View user's profile Send private message Yahoo Messenger
Terry_Heinze
Supermod


Joined: 31 May 2004
Posts: 391
Topics: 4
Location: Richfield, MN, USA

PostPosted: Thu Jul 03, 2008 3:08 pm    Post subject: Reply with quote

If I remember correctly, IAM (or VSAM) files cannot be concatenated in a DD like QSAM files can be. My approach would be to initially read the 1st record in the 2nd file. If it's greater than the key I'm looking for, go after file 1; otherwise, use file 2. I'm sure someone can come up with a better idea, but this is the approach I once used for an internal table that was too large and had to be split into 2 01 level tables to circumvent the COBOL table size limit.
_________________
....Terry
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