Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Segments in a file

Former Member
0 Likes
586

Hi all,

What do you mean by Segments in a file ? What is the difference Between Record and a Segment ?

General definition of a File is : file is a group of records and Record is a group of fields.....right ?

Thanks in advance

Krish...

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
553

Hi,

What do you mean by segments in a file?

Segments are refer to fields.

What is the difference Between Record and a Segment ?

A single record can contain more than one segment (field).

I believe you are correct for general definition of a File is : file is a group of records and Record is a group of fields.

Regards,

Ferry Lianto

Hi all,

What do you mean by Segments in a file ? What is the difference Between Record and a Segment ?

General definition of a File is : file is a group of records and Record is a group of fields.....right ?

Thanks in advance

Krish...

2 REPLIES 2
Read only

Former Member
0 Likes
554

Hi,

What do you mean by segments in a file?

Segments are refer to fields.

What is the difference Between Record and a Segment ?

A single record can contain more than one segment (field).

I believe you are correct for general definition of a File is : file is a group of records and Record is a group of fields.

Regards,

Ferry Lianto

Read only

Former Member
0 Likes
553

Every row in a file is called as a Record. Where as a set of predefined fields grouped together in a record in called a Segment. So when the number of fields in the segment equals the length of the record then both of them would be the same.

Also a record may have several segments. But a segment cannot have several records.

- guru

Reward points fo rhelpful answers