What is a segment in IMS???

RDBMS from IBM and IBM's Hierarchical DBMS and Transaction Manager (IMS DC).
Post Reply
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 »

Hi,

What is actually a segment??gone thru docs but not yet clear with the concept?
enrico-sorichetti
Global Moderator
Global Moderator
Posts: 826
Joined: Wed Sep 11, 2013 3:57 pm

Re: What is a segment in IMS???

Post 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
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: 2801
Joined: Sun Apr 21, 2013 7:40 pm
Location: Mumbai, India
Contact:
India

Re: What is a segment in IMS???

Post 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.
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.
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 »

Great...thanks. I can make some sense of this now. Thank you for your help.
User avatar
Anuj Dhawan
Founder
Posts: 2801
Joined: Sun Apr 21, 2013 7:40 pm
Location: Mumbai, India
Contact:
India

Re: What is a segment in IMS???

Post by Anuj Dhawan »

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.
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “IBM DB2 and IMS DB/DC”