Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Use of occurs in a segment layout

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> IMS DB/DC
View previous topic :: :: View next topic  
Author Message
ksachin9

New User


Joined: 17 Jan 2008
Posts: 1
Location: Pune

PostPosted: Thu Jan 17, 2008 6:18 pm    Post subject: Use of occurs in a segment layout
Reply with quote

Hi, I want to understand, how the following segment layout will be stored in the IMS DB.

XAK1WWWN CHAR (1)
XAK1JMAKT CHAR (4)
XAK1UAKT(1:11)
XAK1UBEN CHAR(30)
XAK1USTDNO FIXED(7,0)
XAK1ANTUT FIXED(7,0)
XAK1RUN CHAR(1)
XAK1WWWF CHAR (1)

As the XAK1UAKT fields is occurring a number of time. If I have data only in four occurences then physically when it's stored, will IMS occupy the space for complete 11 occurences or just only 4 occurences?
Back to top
View user's profile Send private message

Sandy Zimmer

Active Member


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

PostPosted: Thu Jan 17, 2008 8:14 pm    Post subject:
Reply with quote

If it is NOT at the end of a variable length segment, it will be stored in all occurences. You will need to remember to initialize those not used.

Sometimes we use variable length segments with an occurs at the very end of the segment. For instance, you would use this for monthly buckets. You would then adjust your segment length based on how many occurences you are using.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> IMS DB/DC All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts File comparsion - Records are in diff... Suganya87 COBOL Programming 11 Tue May 10, 2016 1:05 pm
No new posts JCL Utility in accordance to the copy... meetsupriyo JCL & VSAM 3 Tue Dec 08, 2015 8:46 pm
No new posts Multiple OCCURS depending on in same ... muralirajansm COBOL Programming 6 Fri Aug 21, 2015 4:23 pm
No new posts Selecting a redefined record layout i... mallik4u Compuware & Other Tools 1 Wed Oct 08, 2014 8:14 am
No new posts partially intializing values from a l... mohitsaini COBOL Programming 2 Thu Sep 11, 2014 9:23 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us