View previous topic :: View next topic |
Author |
Message |
Milind Beginner
Joined: 29 Dec 2004 Posts: 26 Topics: 20
|
Posted: Tue Jul 05, 2005 6:32 am Post subject: Internal storage of files |
|
|
Hi,
Recently my friend has attended a interviewed in which he was asked a question as:
"Internally all files are stored as Variable Length File. What do you say?"
I don't know the answer of this particular answer.
Waiting egarly for your replies.
Thanks in advance.
Milind Deshmukh. |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12380 Topics: 75 Location: San Jose
|
Posted: Tue Jul 05, 2005 6:42 am Post subject: |
|
|
Milind,
IMHO that statement is FALSE. Not all files are stored internally as variable block files.
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
 |
Milind Beginner
Joined: 29 Dec 2004 Posts: 26 Topics: 20
|
Posted: Tue Jul 05, 2005 11:16 pm Post subject: |
|
|
Hi Kolusu,
I didn't get your anwer. Can u please explain it in detail or can some site where I can get the info regarding this?
Thanks in advance,
Milind Deshmukh. |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12380 Topics: 75 Location: San Jose
|
Posted: Wed Jul 06, 2005 5:55 am Post subject: |
|
|
Milind,
My answer is simple. I don't beleive that all files are internally stored as variable block files.
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
 |
bablack Beginner
Joined: 04 Dec 2002 Posts: 71 Topics: 0 Location: Little Falls, NJ
|
Posted: Mon Jul 11, 2005 1:46 pm Post subject: |
|
|
Quote: | Recently my friend has attended a interviewed in which he was asked a question as:
"Internally all files are stored as Variable Length File. What do you say?" |
This sounds like a trick question. On a gross level, it is DEFINITELY NOT TRUE. While it is true that for some file types (such as most type of VSAM), all records have a variable record format (starting with a length field), EVEN if they are all the same length, other types of files, such as simple sequential, are stored as true fixed (no length fields).
But if you get down to the disk level, then in the CKD format used by MVS, every block (not record) has a length field in the count field and could be considered variable. But I would not expect most programmers to know that.
You can read more about this at
http://publibz.boulder.ibm.com/epubs/pdf/dgt2d430.pdf _________________ Bruce A. Black
Senior Software Developer
Innovation Data Processing |
|
Back to top |
|
 |
|
|