Skip to main content

New to Visual Cobol 6, in MF Workbench 3.2 it was simple to change the COBOL.DIR file but I cannot find it in VC6.

New to Visual Cobol 6, in MF Workbench 3.2 it was simple to change the COBOL.DIR file but I cannot find it in VC6.

If you create a cobol.dir in the directory "%cobdir%\\etc", it will get picked up when you run the compiler. (where cobdir is the environment variable pointing at your installation directory in a Visual Cobol prompt).

 

 


If you create a cobol.dir in the directory "%cobdir%\\etc", it will get picked up when you run the compiler. (where cobdir is the environment variable pointing at your installation directory in a Visual Cobol prompt).

 

 

Would the prompt directory be "C:\\Program Files (x86)\\Micro Focus\\Visual COBOL"?


Would the prompt directory be "C:\\Program Files (x86)\\Micro Focus\\Visual COBOL"?

Yes, the etc directory under that.



Would the prompt directory be "C:\\Program Files (x86)\\Micro Focus\\Visual COBOL"?

That's right, the etc directory under that one.

 


That's right, the etc directory under that one.

 

Once my siatica dies down or the morphine kicks in I will test the your solution. Many thanks again for your reply.


Once my siatica dies down or the morphine kicks in I will test the your solution. Many thanks again for your reply.

I get an error as in 20201023 Errors.PNG if there is the directive XREF cobol.dir  but clean complie if cobol.dir is empty.


I get an error as in 20201023 Errors.PNG if there is the directive XREF cobol.dir  but clean complie if cobol.dir is empty.

What's in your COBOL.DIR file?


I get an error as in 20201023 Errors.PNG if there is the directive XREF cobol.dir  but clean complie if cobol.dir is empty.

You shouldn't need to use COBDIR, you should be able to set it right within the project properties.  Don't forget to click on the list button as well.  See screenshot


What's in your COBOL.DIR file?

XREF

 

Nothing else.


XREF

 

Nothing else.

Double check there is a carriage return/linefeed after it. The error you posted almost looks like it is running right into the next directive which seems to be NOLOGO. Also try adding it in the project under other directives. See my other post



Double check there is a carriage return/linefeed after it. The error you posted almost looks like it is running right into the next directive which seems to be NOLOGO. Also try adding it in the project under other directives. See my other post


Add a few carriage returns deleted the .INT and ,IDY files error message disappeard. Now trying to find if XREF was produced and where it will be.


Add a few carriage returns deleted the .INT and ,IDY files error message disappeard. Now trying to find if XREF was produced and where it will be.

The XREF is at the bottom of the listing file. Did you turn that on, and then there is another compiler option to tell it where to put that. If your doing this in VS you'll be much better doing this all in project setting instead of playing around in COBDIR