Page 1 of 1

space increment in JCL is not working.

Posted: Sun Nov 10, 2024 11:25 am
by Technocrat
HiĀ 

Need a clarification here. I have 16 steps in my JCL. In that 8th step failed due to SB37 but when I googled,it says to increase space but when I tried to increase again it shows the same error whenever I have increased. What I need here is -what is the max space limit I can give? -whether shall I give same space as I have in Input file? Attached the JCL step am getting the error. Suggestion would be appreciated.

Re: space increment in JCL is not working.

Posted: Sun Nov 10, 2024 6:16 pm
by enrico-sorichetti
instead of the nothing attached it would be more useful to see the jes job log with all the related messages

Re: space increment in JCL is not working.

Posted: Mon Nov 11, 2024 4:11 am
by zum13
There are several causes to a B37 abend the most common of which are that you've used the maximum number of extents (which is 16) or there's no space on the volume. Check the volume you're allocating to and make sure that you can allocate the space you've requested. If there's plenty of space, then your program is filling the dataset.

If the program you're running reports the number of records you're writing, try changing the output dataset to a DD DUMMY to give you the record count which will help in working out your disk space requirements. Of course, it's also possible that the program is stuck in a loop in which case no amount of disk space will satisfy it!

As for maximums, the largest single volume dataset can only be as large as the volume it's allocated on. That increases when you go multi-volume.