Microsoft KB Archive/884391

= You receive an &quot;Invalid COBOL&quot; error message in the COBOL Import Wizard in a Transaction Integrator (TI) project =

Article ID: 884391

Article Last Modified on 12/4/2007

-

APPLIES TO


 * Microsoft Host Integration Server 2004 Standard Edition

-





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.



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.



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



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the &quot;Applies to&quot; section.



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 &quot;Symptoms&quot; section.

Additional query words: HIS2004 HIS

Keywords: kbtshoot kbprb KB884391

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.