Link to home
Start Free TrialLog in
Avatar of KPax
KPax

asked on

Permanently set DB2CLP environment variable

I have a problem with DB2CLP environment variable, on Windows 7 64, IBM_client64_V97 (to be connected with DB2).

Every time when i try to DB2 in Windows command prompt window, I receive this error:

DB21061E Command line environment not initialized.

and per this document using just this step:

2. at the prompt enter these commands:
db2cmd -i -w db2clpsetcp
echo %DB2CLP%
I fix that error, and "db2" command opens Command Line Processor for DB2 Client. But it lasts only until windows CMD is open. As soon as I close it and reopen, I have to repeat process.

My question (being absolute novice to DB2) is:

How should I make that change permanent and
How this happened at the first place as I installed and setup everything according to the manual (including adding local user to DB2USERS and DB2ADMINS) groups?
SOLUTION
Avatar of Kent Olsen
Kent Olsen
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of KPax
KPax

ASKER

Yes I have that (it's installed, and it's working OK) but I thought that should be able to type in windows CDM something like "DB2 ..some command..." but  I got the error I described,
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial