Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Why opening an empty VSAM fails?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: Why opening an empty VSAM fails?
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: 2422
Location: Netherlands, Amstelveen

PostPosted: Wed Jul 21, 2010 3:53 pm    Post subject:
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: 7929
Location: Bellevue, IA

PostPosted: Wed Jul 21, 2010 4:13 pm    Post subject:
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

Active Member


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

PostPosted: Wed Jul 21, 2010 5:12 pm    Post subject:
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    Post subject: Reply to: Why opening an empty VSAM fails?
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

Site Director


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

PostPosted: Wed Jul 21, 2010 8:36 pm    Post subject:
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

Active Member


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

PostPosted: Thu Jul 22, 2010 12:12 am    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts how to recover an uncataloged VSAM da... archanamuthukrishnan All Other Mainframe Topics 3 Wed Jan 11, 2017 6:18 pm
No new posts Underlying DB2 VSAM LDS - SMF recording vasanthz All Other Mainframe Topics 6 Thu Jan 05, 2017 4:20 am
This topic is locked: you cannot edit posts or make replies. Natural ADABAS Opening with CTS enikhilk Mainframe Jobs 0 Wed Nov 30, 2016 5:37 pm
No new posts Invoke Webservice Fails with DFHPI100... divated CICS 2 Thu Nov 24, 2016 5:57 pm
No new posts BWO option in VSAM blayek CICS 3 Sat Nov 05, 2016 10:47 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us