Setting up the product

If you have installed the product to a directory other than the default one, you need to set the environment as described below.

Note: The default directory is /opt/microfocus/Enterprise Developer/.
  1. To set up your product, execute:
  2. To verify that your product is installed, execute:
    cob -V
Important: These commands set the environment only for the current shell. You need to execute them for each new shell that you start.

To avoid having to run cobsetenv for every shell, add these commands to the shell initialization files (such as /etc/profile, /etc/bashrc).

Note that cobsetenv is only compatible with POSIX-like shells, such as bash, ksh, or XPG4 sh. It is not compatible with C-shell or pre-XPG4 Bourne shell.

Note: If there are two or more products installed on the machine or the products are installed in non-default locations then the /opt/microfocus/logs/MicroFocusProductRegistry.dat data file can be used to find the product locations.

The file contains the following entries:

[ Install Location ]#[ Date of Installation ]#[ Product Name ]

For example:

/home/user1/VisCobol30#2017-01-20#Micro Focus Visual COBOL Development Hub 3.0

/home/user1/CobolServer30#2017-01-20#Micro Focus COBOL Server 3.0