Page 1 of 1

Space abend interview question.

Posted: Wed Jun 15, 2016 2:35 pm
by zOSHelp
Hi,

There is a file which will have maximum 100 records. It is a Fixed block file. The space parameter for it is defined as SPACE=(CYL,(25,25),RLSE). But still at the time of execution the job abends for this file with SB37. Why this happens? Even when the space allocated is adequate?

I don't know why would this happen. Someone can please help on this?

Re: Space abend interview question.

Posted: Wed Jun 15, 2016 2:40 pm
by Chandan Yadav
One reason I can see is the volume on which you trying to allocate the fine does not have space.

Experts.. correct me If I am wrong

Thanks,
Chandan

Re: Space abend interview question.

Posted: Wed Jun 15, 2016 2:46 pm
by nicc
You do not say what the LRECL is so how can we calculate the required space?

Re: Space abend interview question.

Posted: Wed Jun 15, 2016 4:34 pm
by Jatin Singh
It sounds like a trick question. Interviewer could give any LRECL and get away with it. Looks like what Chandan has said is the only answer.

Re: Space abend interview question.

Posted: Wed Jun 15, 2016 5:01 pm
by Robert Sample
An SB37 abend is related to the VOLUME, not the data set.  The volume being used does not have enough free space to provide the primary space of 25 cylinders in 5 extents or less.  If the data set is SMS-managed there would be a different message and the SB37 would not occur.