Skip to main content

 I installed NetExpress 6.0 on a development machine and went about trying to compile a module.  The code here at my new job is uses copybooks for everything.  The Properties tab in the menu under Project is disabled.  When I compile a module it fails because NetExpress can't find the copybooks.  Any assistance is welcome.

 I installed NetExpress 6.0 on a development machine and went about trying to compile a module.  The code here at my new job is uses copybooks for everything.  The Properties tab in the menu under Project is disabled.  When I compile a module it fails because NetExpress can't find the copybooks.  Any assistance is welcome.

There is no such product as Net Express 6.0 so the actual product must be Studio Enterprise Edition 6.0 and you are using the Net Express IDE within it.

If the Properties tab is disabled then this means that you do not have an actual project open. The NX IDE allows you to edit, compile and debug source programs without adding them to a project but a project is definitely the recommended way to develop your applications.

If you create a project using File-->New-->Project and then add your source program to it you can set directives and environment variables at the project level. The environment variable to set for the location of copybooks that are not in your project folder is COBCPY, e.g., COBCPY=c:\\mycopyfiles;c:\\myotherfiles.

You can also set this environment variable at the system level in Control Panel and it will be picked up when you start the NX IDE. It can then be used when working on a single module outside of a project.

 I installed NetExpress 6.0 on a development machine and went about trying to compile a module.  The code here at my new job is uses copybooks for everything.  The Properties tab in the menu under Project is disabled.  When I compile a module it fails because NetExpress can't find the copybooks.  Any assistance is welcome.

Yup, I ended up finding the problem myself - I needed to create a project from each of my COBOL applications. I can't compile though - no CICS directives and one copybook has a pair of what it thinks are reserved words - LEFT-JUSTIFY and RIGHT-JUSTIFY. I only really need to see the code with copybooks/includes expanded, which is what I can now do. Thank you for your assistance.

 I installed NetExpress 6.0 on a development machine and went about trying to compile a module.  The code here at my new job is uses copybooks for everything.  The Properties tab in the menu under Project is disabled.  When I compile a module it fails because NetExpress can't find the copybooks.  Any assistance is welcome.

I am also missing SQL directives - can't find documentation as to how / where to set them.

 I installed NetExpress 6.0 on a development machine and went about trying to compile a module.  The code here at my new job is uses copybooks for everything.  The Properties tab in the menu under Project is disabled.  When I compile a module it fails because NetExpress can't find the copybooks.  Any assistance is welcome.

You can use the REMOVE directive so that the compiler will allow you to use reserved words as data items:

REMOVE"LEFT-JUSTIFY "
REMOVE"RIGHT-JUSTIFY"

If you are using CICS then you should really be using the Visual Studio IDE for development in Studio 6.0 and not the NX IDE.

SQL directives can be placed on the Project Properties page click the button for SQL Directives and add the appropriate settings. This is dependent on which preprocessor and database you are using. You can also enter the SQL directives directly within the Project directives box. If you are using ODBC, for example you would set SQL(DBMAN=ODBC) if you are using the DB2 ECM then you would use the DB2 directive, Oracle the COBSQL directive, etc. These are all selectable within the SQL Directives option when you click that checkbox.

SQL settings are covered in the docs under Programming-->Database Access-->Reference.

 I installed NetExpress 6.0 on a development machine and went about trying to compile a module.  The code here at my new job is uses copybooks for everything.  The Properties tab in the menu under Project is disabled.  When I compile a module it fails because NetExpress can't find the copybooks.  Any assistance is welcome.

I did notice I had no problem compiling in Visual Studio 2008. Thanks again for your assistance.