Page 1 of 1
EMPTY VSAM file
Posted:
Thu Dec 01, 2011 8:01 pm
by whocares
Currently we have old legacy programs that must have the KSDS VSAM initailaized before use. To get arround this we use quickjob to write a record then delete the record so the file is initialized
Is there way arround this without rewriting the program?
Re: EMPTY VSAM file
Posted:
Thu Dec 01, 2011 8:09 pm
by Robert Sample
No. This is not a legacy program requirement, it is a VSAM requirement. The requirement is that a VSAM file that has not been opened for output and had a record written (even if it is then deleted) CANNOT be opened for input.
Re: EMPTY VSAM file
Posted:
Thu Dec 01, 2011 9:12 pm
by halfteck
add a low or high values key record. Remove that record after you have used the file and added 'proper' records
Re: EMPTY VSAM file
Posted:
Thu Dec 01, 2011 9:24 pm
by enrico-sorichetti
add a low or high values key record. Remove that record after you have used the file and added 'proper' records
the process to <prime> the file is already in place, the TS is just asking how to get rid of the <priming>
anyway the answer is NO