Space abend interview question.

All sort of Mainframes Interview Questions.
Post Reply
zOSHelp
Registered Member
Posts: 13
Joined: Tue Aug 20, 2013 12:52 pm

Space abend interview question.

Post 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?
Chandan Yadav
Website Team
Website Team
Posts: 70
Joined: Wed Jul 31, 2013 10:19 pm

Re: Space abend interview question.

Post 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
nicc
Global Moderator
Global Moderator
Posts: 691
Joined: Wed Apr 23, 2014 8:45 pm

Re: Space abend interview question.

Post by nicc »

You do not say what the LRECL is so how can we calculate the required space?
Regards
Nic
Jatin Singh
Registered Member
Posts: 20
Joined: Fri Nov 01, 2013 11:31 pm

Re: Space abend interview question.

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

Re: Space abend interview question.

Post 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.
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 “Interview Questions.”