Can we use Sort utility on VSAM file?

IBM's Sort Product, ICETOOL, ICEMAN and ICEGENER.
Post Reply
Radhika Apte
Registered Member
Posts: 15
Joined: Mon Jan 11, 2016 3:17 pm

Can we use Sort utility on VSAM file?

Post by Radhika Apte »

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.
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1895
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

Re: Can we use Sort utility on VSAM file?

Post by Robert Sample »

That file collects some garbage, Hence the subsequent job fails.
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.
Radhika Apte
Registered Member
Posts: 15
Joined: Mon Jan 11, 2016 3:17 pm

Re: Can we use Sort utility on VSAM file?

Post by Radhika Apte »

That was the problem, one of the VSMAs were getting reallocated as empty.
Post Reply

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

Register

Sign in

Return to “IBM DFSort, ICETOOL, ICEMAN, ICEGENER.”