Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

You receive an


View products that this article applies to.

Symptoms

When you try to import a COBOL source file with the COBOL Import Wizard in a Transaction Integrator (TI) project in Microsoft Visual Studio .NET 2003, you may receive the following error message:
Invalid COBOL syntax was found at the beginning of the file. This file may not contain any COBOL.

↑ Back to the top


Cause

This problem occurs in the COBOL Import Wizard when any one of the following statements starts in column 9.
IDENTIFICATION DIVISION
ENVIRONMENT DIVISION
CONFIGURATION SECTION
DATA DIVISION
Note COBOL requirements state that these statements may occur in columns 8 through 11, but the current implementation only supports these statements that start in column 8.

↑ Back to the top


Resolution

To resolve this problem, modify the COBOL statements to start in column 8.

↑ Back to the top


Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

↑ Back to the top


More information

Steps to reproduce the behavior

1.In a text editor, create COBOL code with one of the statements starting in column 9.
2.Start the COBOL Import Wizard, point to the newly created file, and then complete the wizard.

You receive the error message that is mentioned in the "Symptoms" section.

↑ Back to the top


Keywords: KB884391, kbprb, kbtshoot

↑ Back to the top

Article Info
Article ID : 884391
Revision : 2
Created on : 12/4/2007
Published on : 12/4/2007
Exists online : False
Views : 364