Rational Developer for System z
COBOL for Windows, Version 7.5, Programming Guide


Setting environment variables for COBOL for Windows

Rational® Developer for System z™ provides a command file that you can use to set the environment variables for accessing the COBOL for Windows compiler and runtime libraries.

The name of the command file is setenvRDZvr.bat, where v is the version number and r is the release number of Rational Developer for System z. Thus for example for Rational Developer for System z, Version 7.5, the name of the command file is setenvRDZ75.bat.

To set up the COBOL for Windows environment in the current command window, you can issue the following command, which uses the fully qualified path to the command file:

“%RDZvrINSTDIR%\bin\setenvRDZvr

Substitute the version number for v and the release number for r in the command above. Thus for example for Rational Developer for System z, Version 7.5, you would issue the command:

“%RDZ75INSTDIR%\bin\setenvRDZ75”

Alternatively, you can first set the PATH environment variable to access the command file, and then invoke the command file by using only the file name:

SET PATH=%PATH%;%RDZvrINSTDIR%\bin
setenvRDZvr

If you want to be able to invoke the setenvRDZvr command from any command window that you open, without having to specify the path to the file, append the following string to your PATH system environment variable in the System Properties window:

;%RDZvrINSTDIR%\bin

Instead of setting the environment variables for COBOL by invoking a command file, you can launch the COBOL environment by clicking Start -> All Programs -> install_name -> IBM Rational Developer for System z -> Command Environment for Local Compilers where install_name is a name that you assigned during installation (by default, IBM Software Delivery Platform).


Terms of use | Feedback

Copyright IBM Corporation 1996, 2008.
This information center is powered by Eclipse technology. (http://www.eclipse.org)