Professional Documents
Culture Documents
A record consists of a single occurrence fo the root segment plus all its dependent
segment occurrences. i.e. in the above figure, the official and personal details of
all the employees in one particular department constitutes ONE record
To search for a segment based on the contents of some field, but the segments not
be sequenced on that field, the field can be designated as a Search field
I am sure, I have totally and thoroughly confused u!!! Please take a couple of aspirins, or
a jug of coffee,but make sure u get the above fundas cleared before proceeding.....
Once segments have been difined, the hierarchical structure decided upon, and key and
search fields chosen, the data base administrator communicates this information to IMS.
To do this, a control block called DATA BASE DESCRIPTION(DBD) is created. It
describes the physical nature of the database. A process called DBDGEN is used to create
the DBD.
The DBDGEN process
The DBDGEN process is as explained below for the sample employee database shown
above...
PRINT NOGEN
DBD NAME=EMPDBD, ACCESS=HIDAM
DATASETDD1=EMP,DEVICE=3350
SEGM NAME=EMPDEPT,PARENT=0,BYTES=128
FIELD NAME=(EMPNUM,SEQ,U),BYTES=6,START=1,TYPE=C
FIELD NAME=DEPTMNT,BYTES=6,START=7,TYPE=C
FIELD NAME=EMPNAME,BYTES=31,START=7,TYPE=C
FIELD NAME=EMPADD,BYTES=30,START=32,TYPE=C
SEGM NAME=EMPPERS,PARENT=EMPDEPT,BYTES=124
FIELD NAME=EMPAGE,BYTES=3,START=1,TYPE=N
FIELD NAME=MARSTAT,BYTES=1,START=4,TYPE=C
FIELD NAME=QUALIF,BYTES=10,START=5,TYPE=C
.....
.....
There are 2 levels in the hierarchy. The segments that are present are
· Department
· Employee personal Details
· Employee official Details
M.N. Shankaranarayanan
Senior Software Engineer , Satyam Computer Services Ltd.
e-mail : nshankar@hd2.dot.net.in