S0C7 Abend in Program SCAN1.

Document ID : KB000053386
Last Modified Date : 14/02/2018
Show Technical Document Details

Description

When scanning a COBOL compiled listing using the provided SCANXT2 jcl, you may receive the following abend:

-
SCAN1 - ABEND=S0C7 U0000 REASON=00000007  
2 - DATA DIVISION NOT FOUND IN MARGIN A. RUN TERMINATED.            
MAKE SURE NOLST, NONUM, AND SOURCE COMPILE PARAMETERS ARE IN EFFECT.  
-

Solution

This abend occurs when the input dataset is defined with a record format of FB.
Rescan your listing from an input dataset defined with a record format of FBA.