Page 1 of 1

What is a segment in IMS???

Posted: Sun Jan 18, 2015 2:22 pm
by Satan Singh Rawat
Hi,

What is actually a segment??gone thru docs but not yet clear with the concept?

Re: What is a segment in IMS???

Posted: Sun Jan 18, 2015 3:59 pm
by enrico-sorichetti
see here
http://www.redbooks.ibm.com/Redbooks.ns ... enDocument

a further hint ...
files have records
relational databases have rows
...
IMS databases have segments

Re: What is a segment in IMS???

Posted: Sun Jan 18, 2015 8:50 pm
by Anuj Dhawan
Segment is the smallest unit of information in an IMS DB, which the program will get every time it seeks an information from the database...as Enrico has given a hint about records and rows.

If you're more familiar with DB2, then this might help you -- an IMS DB segment would define the fields for a set of 'segment instances' similar to the way a relational table defines columns for a set of rows in a table. So, if you correlate this way - "segment" can be related to "tables" and "fields in a segment" can be related to "columns in a DB2 table".

Hope this helps.

Re: What is a segment in IMS???

Posted: Mon Jan 19, 2015 11:12 pm
by Satan Singh Rawat
Great...thanks. I can make some sense of this now. Thank you for your help.

Re: What is a segment in IMS???

Posted: Tue Jan 20, 2015 8:43 am
by Anuj Dhawan
You're welcome! :)