Segment code

IMS needs a way to identify each segment type stored in a database. It uses the segment code field for this purpose.

When loading a segment type, IMS assigns it a unique identifier (an integer from 1 to 255). IMS assigns numbers in ascending sequence, starting with the root segment type (number 1) and continuing through all dependent segment types in hierarchical sequence.