IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Difference between Flat Files and VSAM files


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sangeetha

New User


Joined: 06 May 2005
Posts: 4

PostPosted: Tue May 17, 2005 2:21 pm
Reply with quote

why are flat files called so, what makes them different from vsam files?
Back to top
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1448
Location: Chicago, IL

PostPosted: Tue May 17, 2005 2:49 pm
Reply with quote

Quote:
why are flat files called so,


Interesting question...sorry don't know the answer.

Quote:
what makes them different from vsam files?


VSAM Files need to have an index value in it.....there is no such constraints with Flat Files.......

Regards,

Priyesh.
Back to top
View user's profile Send private message
vasanthanc

New User


Joined: 01 Apr 2005
Posts: 58

PostPosted: Thu May 19, 2005 11:24 am
Reply with quote

flat files are called so because they are simple files which stores text, will not have any indexes or keys. Only sequential access is possible. It gives a flat llok to file and hence its called as flat files
Back to top
View user's profile Send private message
kanak

Moderator


Joined: 12 Mar 2005
Posts: 252
Location: India

PostPosted: Thu May 19, 2005 7:52 pm
Reply with quote

the organization of VSAM file is different than flat file. The way VSAM file is defined, is it need cluster which will consists of index and data area and that is mandatory.Where as for flat file index is not mandatory.
Flat file which are acces using index is just to make acces faster nothign else, but for VSAM fiel u always need an index.
Back to top
View user's profile Send private message
brain_s390

New User


Joined: 06 May 2005
Posts: 58
Location: Mumbai

PostPosted: Sat May 21, 2005 1:43 pm
Reply with quote

Vsam is IBM's virtual storage access method.It provides sequential
indexed relative record dataset.VSAM increases the disk space requirements of systems. This is because VSAM offers certain
capabilities like partial self-reorganization to make things more efficient in data sets that can be
modified.
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Tue May 24, 2005 2:20 am
Reply with quote

sangeetha wrote:
why are flat files called so, what makes them different from vsam files?

I don't know why they're called "flat files" either. I've heard of programmers referring to ASCII text files as "flat files", but I never heard of anyone referring to mainframe datasets by that term until I started to participate in this and other forums. It seems to me that usually only an applications programmer will refer to a dataset as a "flat file", whereas most of the rest of the IT world will call it a "Physical Sequential" or "QSAM" dataset.
Back to top
View user's profile Send private message
GAFUR

New User


Joined: 19 May 2005
Posts: 31

PostPosted: Tue May 24, 2005 6:16 pm
Reply with quote

HI

In VSAM files records are stored in control intervals where as in FLAT files records are stored in blocks.

FLAT files are sequential read . VSAM files can sequential and random read.

In VSAM acess is fast because of organization of records.

In FLAT files you can delete the record logicaly where as in VSAM physical delete is possible.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts Write line by line from two files DFSORT/ICETOOL 7
No new posts Access to non cataloged VSAM file JCL & VSAM 18
No new posts Compare only first records of the fil... SYNCSORT 7
Search our Forums:

Back to Top