Page 1 of 1

Result of opening an empty VSAM file.

PostPosted: Wed Aug 26, 2009 8:10 am
by Pebble
Hi,

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

Pebble.

Re: Result of opening an empty VSAM file.

PostPosted: Wed Aug 26, 2009 8:19 am
by dick scherrer
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.