Page 1 of 1

File status code 34 while reading a VSAM.

Posted: Tue Oct 24, 2017 8:27 am
by Pragya
Hi,

While reading a VSAM file sequentially, I am getting a file ststus code 34. In this I need to read the file sequentially and
write records in an output sequential file.

As a remedy I have also increased the space for the output file but I stil get the abend, could please someone help.

Re: File status code 34 while reading a VSAM.

Posted: Tue Oct 24, 2017 3:40 pm
by nicc
Why did you increase the space for the output data set (not "file")? Was that one of the recommendations from the manual? You did read the manual, didn't you? Probably not, so read up on what a status code of 34 is, and, being a VSAM data set, what the secondary status code is.

Re: File status code 34 while reading a VSAM.

Posted: Tue Oct 24, 2017 5:17 pm
by Robert Sample
You left out a few CRITICAL pieces of information in your post:

Are you getting the file status 34 on the input VSAM data set or the output sequential data set?
How many records in the VSAM data set?
How many of those records are you wanting to copy to the output data set?
If the data set is being created by your job, what is the DD definition for the data set?
If the data set already exists, what are the attributes of the data set?
How many records do you process before getting the file status 34?