Skip to main content
Question

Windows.cpy has errors!

  • January 30, 2026
  • 0 replies
  • 2 views

InsyteDeveloper

After installing the Visual COBOL PE, a took a utility program written in Fujitsu COBOL, to see how much of the source would or would not compile. There were few lines of code in the utility program that did not compile and I changed and/or deleted them so as the original source compiled successfully. However, the source included the COPY WINDOWS statement and that is where the majority of the errors occurred when compiled the windows.cpy file! My first thought was that the original source was to blame. I subsequently took the COBOL source template  file that is created when a new project is started. Below is the contents of that file: 

 

       identification division.
       program-id. Program1.

       environment division.
       configuration section.

       data division.
       working-storage section.
       COPY WINDOWS. *> pick up Windows defines
       procedure division.

           goback.

       end program Program1.
 

The above code produced the same errors in the windows.cpy file. So my question is why this COPY file fails to compile. Are there project settings that I must set to eliminate this situation? Any help is greatly appreciated. I have attached a text file containing the error messages produced. 

Kevin