The $END statement is used in conjunction with the $IF statement to control conditional compilation.
            
            
               General Format
               
                
               
             
            
            
               Syntax Rules
               
               
               
                  
                  - The whole statement must appear on a single line. 
 
            
            
               General Rules
               
               
               
                  
                  - The innermost $IF statement is terminated. The now active $IF condition is considered. If the active condition is true the
                     source lines following the $END are processed. If the condition is false, COBOL source lines are ignored until the next conditional
                     compilation line is encountered.