IBM Support

CLEARCASE_PROFILE environment variable is not working from the GUI

Troubleshooting


Problem

This technote explains why the IBM® Rational® ClearCase® environment variable CLEARCASE_PROFILE does not impact the default changes to the cleartool and multitool commands when executed from the graphical user interface (GUI) on Microsoft® Windows®.

Cause

The CLEARCASE_PROFILE environment variable only works when cleartool and multitool command are run from the command line.


Say for example you wanted to change the default behavior of cleartool checkout to not prompt for a comment., you would

  1. Define the CLEARCASE_PROFILE environment variable and set the fully qualified path and file name for a profile to override the checkout settings.

    For example: CLEARCASE_PROFILE=c:\.clearcase_profile
  2. Create the .clearcase_profile file in the path that you specified in the above step.
  3. Edit the contents of the file and add the following line:
    checkout -nc

Upon making these changes you would see that checkout from the command line would not prompt for a comment, but checkout from the GUI (ClearCase Explorer or Windows Explorer or other integration GUIs) would prompt for a checkout.

Resolving The Problem

You will need to configure the User Preferences on the ClearCase client to control the behavior of GUI interactions.

The user preferences to control the GUI will depend on the interface you are working in.

  • If you want to change the ClearCase and Windows Explorer GUI defaults, configure the User Preferences found on the Options tab in ClearCase Home Base (Start > Run type clearhomebase).

    Note: Review technote1135939 for an example on how to configure the ClearCase and Windows Explorer GUI to change the default behavior for checkouts.

  • If you want to configure a 3rd party integration GUI default behavior (such as Microsoft Visual Studio or Sybase Power Builder), you will need to toggle the user preferences from the IDE. Consult the help files about the integration of concern for more information.



[{"Product":{"code":"SSSH27","label":"Rational ClearCase"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Environment Variables","Platform":[{"code":"PF033","label":"Windows"}],"Version":"2002.05.00;2003.06.00;7.0","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}},{"Product":{"code":"SSSH27","label":"Rational ClearCase"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Environment Variables","Platform":[{"code":"","label":""}],"Version":"","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}},{"Product":{"code":"SSSH27","label":"Rational ClearCase"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Environment Variables","Platform":[{"code":"","label":""}],"Version":"","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
16 June 2018

UID

swg21142599