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

Copybook Structure change - recalculation of segment length


IBM Mainframe Forums -> IMS DB/DC
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Keanehelp

New User


Joined: 27 May 2008
Posts: 71
Location: USA, CA.

PostPosted: Fri Jul 04, 2008 9:33 am
Reply with quote

Hi,
We are modifying the structure of an existing IMS segment(increasing overall size by 1 byte and expanding a variable in the middle of the segment resulting in all following variables being displaced by 1 byte)

While writing the program to restructure the data, do we need to recalculate and update the length of each record using this segment ?

Also please could you let me know the various scenarios when the segment length for each record in an IMS database needs to be recalculated ?

Thanks
Back to top
View user's profile Send private message
Sandy Zimmer

Active Member


Joined: 13 Jun 2007
Posts: 826
Location: Wilmington, DE

PostPosted: Fri Jul 04, 2008 10:34 am
Reply with quote

If you are adding a byte to the middle of your segment in an EXISTING database, you are going to have a real mess unless you are very careful. If your database is defined as variable length, you always need to insert it with a recalculated length. Since you are going thru all the trouble of writing a conversion program, why not put all variables at the end of your segment?
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> IMS DB/DC

 


Similar Topics
Topic Forum Replies
No new posts Old SDFHCOB Copybook CICS 1
No new posts Replacing FILLER with FILLER<SeqNu... DFSORT/ICETOOL 2
No new posts Get RECORD LENGTH, allocated space of... CLIST & REXX 7
No new posts Binary File format getting change whi... All Other Mainframe Topics 7
No new posts Store the data for fixed length COBOL Programming 1
Search our Forums:


Back to Top