Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 2442
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: 8165
Location: East Dubuque, Illinois, USA

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: 965
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: 965
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 opening a dataset after reading it fr... arunsoods DFSORT/ICETOOL 5 Wed Oct 04, 2017 3:54 pm
No new posts VSAM RLS Wait time blayek JCL & VSAM 2 Mon Oct 02, 2017 9:05 pm
No new posts BUILD OUTFIL based on condition other... balaji81_k DFSORT/ICETOOL 13 Fri Sep 08, 2017 11:06 pm
No new posts Multiple VSAM files single output fil... Mohan Kothakota DFSORT/ICETOOL 11 Wed Aug 09, 2017 7:57 pm
No new posts Mainframe Opening in Chennai ( 2 to 4... muralikrishnan_new Mainframe Jobs 0 Tue Jul 18, 2017 2:20 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us