Hi,
What is actually a segment??gone thru docs but not yet clear with the concept?
What is a segment in IMS???
-
- New Member
- Posts: 8
- Joined: Sun Jul 20, 2014 12:54 pm
-
- Global Moderator
- Posts: 826
- Joined: Wed Sep 11, 2013 3:57 pm
Re: What is a segment in IMS???
see here
http://www.redbooks.ibm.com/Redbooks.ns ... enDocument
a further hint ...
files have records
relational databases have rows
...
IMS databases have segments
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
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
- Anuj Dhawan
- Founder
- Posts: 2802
- Joined: Sun Apr 21, 2013 7:40 pm
- Location: Mumbai, India
- Contact:
Re: What is a segment in IMS???
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.
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.
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.
-
- New Member
- Posts: 8
- Joined: Sun Jul 20, 2014 12:54 pm
Re: What is a segment in IMS???
Great...thanks. I can make some sense of this now. Thank you for your help.
- Anuj Dhawan
- Founder
- Posts: 2802
- Joined: Sun Apr 21, 2013 7:40 pm
- Location: Mumbai, India
- Contact:
Re: What is a segment in IMS???
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.
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.
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