. /opt/microfocus/VisualCOBOL/bin/cobsetenv
cob -V
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.