Result of opening an empty VSAM file.



Help for IBM's record-oriented filesystem VSAM, ESDS, KSDS, RRDS, LDS and Storage management Subsystems

Result of opening an empty VSAM file.

Postby Pebble » Wed Aug 26, 2009 8:10 am

Hi,

What happens when an empty VSAM file is opened in COBOL program for input?

Pebble.
User avatar
Pebble
 
Posts: 8
Joined: Wed Aug 26, 2009 7:55 am
Has thanked: 0 time
Been thanked: 0 time

Re: Result of opening an empty VSAM file.

 

Re: Result of opening an empty VSAM file.

Postby dick scherrer » Wed Aug 26, 2009 8:19 am

Hello,

To be processed successfully as input, a vsam file must have at least one record.

Most times, a record is added as part of defining a new empty vsam file. The convention is often a high-values or nines record, but can be anything that everyone writing code understands.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times


Return to VSAM/SMS

 


  • Related topics
    Replies
    Views
    Last post