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 Enterprise Developer environment settings that are required to set up the COBOL and PL/I 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 Enterprise Developer environment settings as SET statements for environment variables.
-j
Execute cblpromp from either a regular (non-COBOL) command prompt or from Enterprise Developer one. Outputs the Enterprise Developer environment settings as Java properties. These only include the Enterprise Developer 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 Enterprise Developer 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 Enterprise Developer 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.