View previous topic :: View next topic
|
Author |
Message |
sambit_mech
New User
Joined: 14 Jul 2010 Posts: 13 Location: India
|
|
|
|
Why opening an empty VSAM file which has never loaded fails if one tries to open it in Input/I-O mode?
Also, can anyone tell me what will be the status code (is it 90)? I am not much energetic to test it since I know that it will fail. |
|
Back to top |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
Maybe for a few 1000's euros i can find the energy to tell you. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Some years back, it was never a good idea to open for input (or I-O) ANY file that had been defined but never written into. IBM made an operating system change a while back for sequential files to allow this, but I can still remember a few middle-of-the-night calls I got where I/O errors occurred due to this. The data set was allocated on disk, data of different record length was there from a deleted data set, so the existing data got picked up by the input operation -- instant WRNG.LEN.RECORD abend.
VSAM file still won't support doing this, but I'm not sure if IBM will eventually correct the problem for them or not. |
|
Back to top |
|
|
Phrzby Phil
Senior Member
Joined: 31 Oct 2006 Posts: 1042 Location: Richmond, Virginia
|
|
|
|
Quote: |
Also, can anyone tell me what will be the status code (is it 90)? I am not much energetic to test it since I know that it will fail.
_________________
"By failiing to prepare, you are preparing to fail." - Benjamin Franklin |
Your failure to even care to test and your signature line seem at odds.
I suggest you change one or the other. |
|
Back to top |
|
|
sambit_mech
New User
Joined: 14 Jul 2010 Posts: 13 Location: India
|
|
|
|
I know that it will fail. I want to know the reason behind this failure - explanation including memory/basic VSAM structure etc. (I don't know any ways how to explain this failure). |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Suggest you get accustomed to the idea that some "things" just work the way they do. . . Many are completely unexplained and remain unexplained forever or until they are changed (fixed).
The most common explanation (when the "real" expalnation is unavailable) is that "It is the way it is because that is how the original author wrote it". When the original code was written, there were probably reasons that particular decisions were made, but many of the explanations have not survived the 35-40 years since they were "known". |
|
Back to top |
|
|
Phrzby Phil
Senior Member
Joined: 31 Oct 2006 Posts: 1042 Location: Richmond, Virginia
|
|
|
|
But you did not care to test to find out if the error was 90 - you just asked around. |
|
Back to top |
|
|
icemanroh
New User
Joined: 23 Aug 2008 Posts: 25 Location: Mumbai
|
|
|
|
Phrzby Phil wrote: |
Quote: |
Also, can anyone tell me what will be the status code (is it 90)? I am not much energetic to test it since I know that it will fail.
_________________
"By failiing to prepare, you are preparing to fail." - Benjamin Franklin |
Your failure to even care to test and your signature line seem at odds.
I suggest you change one or the other. |
|
|
Back to top |
|
|
|