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

Why opening an empty VSAM fails?


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

New User


Joined: 14 Jul 2010
Posts: 13
Location: India

PostPosted: Wed Jul 21, 2010 3:29 pm
Reply with quote

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. icon_wink.gif
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Wed Jul 21, 2010 3:53 pm
Reply with quote

Maybe for a few 1000's euros i can find the energy to tell you.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Wed Jul 21, 2010 4:13 pm
Reply with quote

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
View user's profile Send private message
Phrzby Phil

Senior Member


Joined: 31 Oct 2006
Posts: 1042
Location: Richmond, Virginia

PostPosted: Wed Jul 21, 2010 5:12 pm
Reply with quote

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
View user's profile Send private message
sambit_mech

New User


Joined: 14 Jul 2010
Posts: 13
Location: India

PostPosted: Wed Jul 21, 2010 5:35 pm
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Jul 21, 2010 8:36 pm
Reply with quote

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
View user's profile Send private message
Phrzby Phil

Senior Member


Joined: 31 Oct 2006
Posts: 1042
Location: Richmond, Virginia

PostPosted: Thu Jul 22, 2010 12:12 am
Reply with quote

But you did not care to test to find out if the error was 90 - you just asked around.
Back to top
View user's profile Send private message
icemanroh

New User


Joined: 23 Aug 2008
Posts: 25
Location: Mumbai

PostPosted: Thu Jul 22, 2010 12:53 pm
Reply with quote

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.


icon_lol.gif
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 Access to non cataloged VSAM file JCL & VSAM 18
No new posts Merge two VSAM KSDS files into third ... JCL & VSAM 6
No new posts CVDA value for RRDS VSAM dataset. CICS 2
No new posts VSAM return code 23 - for a Random read COBOL Programming 4
No new posts Open VSAM File in IMS DC Region - DFS... IMS DB/DC 0
Search our Forums:

Back to Top