Using the CBLPROMP Utility to Export the Environment Settings

Restriction: This topic applies to Windows environments only.

cblpromp is a Windows-only command line utility that outputs the Visual COBOL environment settings that are required to set up the COBOL environment.

Syntax

[<installdir>\bin\]cblpromp [arguments]
no arguments
Execute cblpromp from a regular (non-COBOL) command prompt only. You need to specify the full path to cblpromp.exe. Outputs the Visual COBOL environment settings as SET statements for environment variables.
-j
Execute cblpromp from either a regular (non-COBOL) command prompt or from Visual COBOL one. Outputs the Visual COBOL environment settings as Java properties. These only include the Visual COBOL environment changes from the registry and not from the entire environment space.

Examples

The following example shows how to use cblpromp from a non-COBOL command prompt and save the Visual COBOL environment settings to a batch file:

<installdir>\bin\cblpromp > myenv.bat

You can use myenv.bat in various scenarios. For example, call the file from a batch file whenever you want to set up the COBOL environment at the command line when you want to compile, analyze, test or deploy your applications.

The following example shows how to use cblpromp with the -j option to export the Visual COBOL environment settings to a Java properties file that can be used for JVM applications:

cblpromp -j > myenv.props

This creates an myenv.props file which you can use to set up the COBOL environment - for example, with an Ant call.