View previous topic :: View next topic
|
Author |
Message |
KAMALAK
New User
Joined: 18 Jul 2005 Posts: 12
|
|
|
|
can u please explain briefy difference between file record and database record..... |
|
Back to top |
|
|
priyesh.agrawal
Senior Member
Joined: 28 Mar 2005 Posts: 1448 Location: Chicago, IL
|
|
|
|
Please make it more clear.....
Regards,
Priyesh. |
|
Back to top |
|
|
varunraisharma
New User
Joined: 01 Sep 2005 Posts: 15 Location: Bangalore
|
|
|
|
Hi
A File record can be compared with a segment occurence in a IMS database. File record consist of some specified fields. Similarily a segment occurence has fields.
File record
01 File-Record
05 Name PIC X(10)
05 Address PIC X(20)
05 FILLER PIC X(50)
Segment
01 W200-SEGMENT-IO-AREA
03 FILLER PIC X(13)
03 W201-SEGMENT1-IO-AREA.
05 IM-SEGMENT1
10 IM-RSRVD-DATA PIC S9(4) COMP.
10 IM-KFLDIM PIC X(20)
10 IM-NAME PIC X(10)
10 IM-ADDRESS PIC X(20)
What i m trying to establish with these examples is that a file record is comparable to a segment occurence in a database.
A Database record is a collection of such segment occurences.
Starting from the root segment and traversing along the hierarchical structure of the IMS database from one segment to other until the last segment in the database constitutes one databse record.
Regards
Varun |
|
Back to top |
|
|
|