Monday, July 13, 2020

SB37 abend in JCL with resolution

 SB37 abend in JCL:

The system abend code SB37 occurs, when there's not enough space or no more extents available on the current volume. 

Resolution:

Example 1:  For or below file Job got abended with SB37 then change the  current volume 

//SORTOUT  DD  DSN=RATNESH.OUTPUT.FILE
//             DISP=(NEW,CATLG,DELETE)
// *           UNIT=current_volume_name   -----> current volume which does not have enough space
//             UNIT=other_volume     -----> new volume name which will have space  


Example 2: For below file Job got abended with SB37 then change the space

//SORTOUT  DD  DSN=RATNESH.OUTPUT.FILE
//             DISP=(NEW,CATLG,DELETE)
//*            SPACE=(CYL,(5,5),RLSE,
//             SPACE=(CYL,(25,25),RLSE,
//             RECFM=FB,LRECL=250  
  





No comments:

Post a Comment