What is a segment in IMS???

IBM's Hierarchical DBMS and Transaction Manager (IMS DC).
Previous topicNext topic

Topic Author
Satan Singh Rawat
New Member
Posts: 8
Joined: Sun Jul 20, 2014 12:54 pm

What is a segment in IMS???

Post by Satan Singh Rawat » Sun Jan 18, 2015 2:22 pm

Hi,

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




enrico-sorichetti
Global Moderator
Global Moderator
Posts: 891
Joined: Wed Sep 11, 2013 3:57 pm

Re: What is a segment in IMS???

Post by enrico-sorichetti » Sun Jan 18, 2015 3:59 pm

see here
http://www.redbooks.ibm.com/Redbooks.ns ... enDocument

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


cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort 8-)

User avatar

Anuj Dhawan
Founder
Posts: 2624
Joined: Sun Apr 21, 2013 7:40 pm
Location: Mumbai, India
Zodiac: Sagittarius

Re: What is a segment in IMS???

Post by Anuj Dhawan » Sun Jan 18, 2015 8:50 pm

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.


Thanks,
Anuj

Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.


Topic Author
Satan Singh Rawat
New Member
Posts: 8
Joined: Sun Jul 20, 2014 12:54 pm

Re: What is a segment in IMS???

Post by Satan Singh Rawat » Mon Jan 19, 2015 11:12 pm

Great...thanks. I can make some sense of this now. Thank you for your help.



User avatar

Anuj Dhawan
Founder
Posts: 2624
Joined: Sun Apr 21, 2013 7:40 pm
Location: Mumbai, India
Zodiac: Sagittarius

Re: What is a segment in IMS???

Post by Anuj Dhawan » Tue Jan 20, 2015 8:43 am

You're welcome! :)


Thanks,
Anuj

Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.

Previous topicNext topic

Return to “IMS DB/DC.”