Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Initialization

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

New User


Joined: 27 Sep 2006
Posts: 47
Location: Hyderabad

PostPosted: Thu Jul 28, 2011 9:44 pm    Post subject: Initialization
Reply with quote

Hi,

Please help me.

I have a requirement to initialize the newly added fileds in IMS database.

for example, A and B are two segments in my database and B segment is child to Segment A.

I have added one filed in Segment A and one filed in Segment B.
Now my requirement is to initialize these fields in Segment A and Segment B.

Here my doubt is ,

Shall I read each record in parent segment i.e. Segment A and intialize the newly added variable and continue this till end of the segment

and after that I read child segment i.e. Segment B and perform the initilization.
Back to top
View user's profile Send private message

dick scherrer

Site Director


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

PostPosted: Thu Jul 28, 2011 10:08 pm    Post subject:
Reply with quote

Hello,

If there are millions and millions of segments, i'd consider unloading the data, making the changes to the sequential data, and then reloading.

This should make controlling the process more straightforward and improve performance.
Back to top
View user's profile Send private message
prashanth1

New User


Joined: 27 Sep 2006
Posts: 47
Location: Hyderabad

PostPosted: Thu Jul 28, 2011 10:57 pm    Post subject:
Reply with quote

Thanks d.sch

Yes there are millions of records in the segments.
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Tue Aug 02, 2011 8:57 pm    Post subject: Re: Initialization
Reply with quote

prashanth1 wrote:
Shall I read each record in parent segment i.e. Segment A and intialize the newly added variable and continue this till end of the segment
What exactly do you mean by "record"? In IMS the smallest unit the program will read is a 'segment' - so you read segment/s and then all the values in that segments are available to you -- so no-records, as such, you talk about from IMS per se.

GN in a loop till you get GB/GE should work for you. Keep in mind, IMS will go down the hirerachy, front to back and left to right. If you have millions of records (which possibly a big count for you) -- you might use the concept of AREAs (but if your IMS is not designed that way, it's a moot point here), on the other hand you can break your process in multiple Jobs, let's say you want a seprate job for every 100,000 segments of type A -- that way first job would update first 100,000 segments of type-A, second will start from 100,000 to 200,000 and so on.

Per your description, your IMS must be oraganised on some key in segement-A, in Job-1 use a qualifed SSA to position the control for segment-A and read it till you get a key match for the 100,000th segment-A. in Job-2 use a qualifed SSA to position the control for segment-A at position 100,000, issue GN till you get a key match for the 200,000th segment-A...
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 % free space issue of the Storage Gro... Pete Wilson JCL & VSAM 6 Fri Feb 15, 2013 6:34 pm
No new posts CICS logoff and commare initialization anjoos20 CICS 1 Fri Aug 05, 2011 11:30 am
No new posts Variable initialization error Vidya Bhama COBOL Programming 8 Mon Feb 21, 2011 5:58 pm
No new posts Initialization of DS and DC variable ... k_rajesh PL/I & Assembler 7 Mon May 24, 2010 6:43 pm
No new posts Question on initialization cybertaurean COBOL Programming 10 Wed Feb 10, 2010 3:30 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us