Can we use Sort utility on VSAM file?
Problem is Vsam file using sort utility and include state creates 5 vsam file but bcs of the one condition one file is empty. That file collects some garbage, Hence the subsequent job fails.
But the same created empty with idcams doesnt fail in subsequent job.
Can we use Sort utility on VSAM file?
-
- Registered Member
- Posts: 15
- Joined: Mon Jan 11, 2016 3:17 pm
- Robert Sample
- Global Moderator
- Posts: 1896
- Joined: Fri Jun 28, 2013 1:22 am
- Location: Dubuque Iowa
Re: Can we use Sort utility on VSAM file?
Highly unlikely. More likely what is happening is that SORT does not open the output file until there are records to write to it (this is, by the way, a guess -- I've never tried something like this to verify the behavior). When a data set is allocated but not opened for output, there is nothing in the data set and typically whatever data was located at that spot on the disk drive is accessible when a program opens the data set for input. And that data is unlikely to have the same DCB as what you're trying to put out there.That file collects some garbage, Hence the subsequent job fails.
-
- Registered Member
- Posts: 15
- Joined: Mon Jan 11, 2016 3:17 pm
Re: Can we use Sort utility on VSAM file?
That was the problem, one of the VSMAs were getting reallocated as empty.
Create an account or sign in to join the discussion
You need to be a member in order to post a reply
Create an account
Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute