Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

USEREXIT on Windows 2000

Status
Not open for further replies.

fmshire

MIS
Jul 5, 2001
22
US
Hi;
I'm trying to activate USER EXIT and LOG REATIAN. I follow up all the steps needed to do that. Which is under c:\Program Files\SQLLIB\SAMPLE, I opened the db2uext2.c and then I did
1. Copy "db2uext2.cdisk" to "db2uext2.c" and place this file
into a working directory c:\Program Files\SQLLIB\bin
2. Modify the "Installation Defined Variables" to suit my environment.
3. Compile and link "db2uext2.c" with the following command from DOS command line "cl db2uext2.c"
I get this error.
"'cl' is not recognized as an internal or external command,
operable program or batch file."

Any help....
Thank you in advance.
 
Hi,
the 'cl' appears to be the compile and link command. Where does this compiler reside? You will either need to be in the directory in which it lives, or have that directory included in your PATH.

Hope this is of some help.

Marc
 
Hi Marc;
Well that's a good question! I don't think I have a compiler in my machine. AS you can imagine, I'm UNIX person I never worked DB2 on Windows. So how do you look for the compiler. and if I don't have, is there a site that I can download.

So, basically I need to go where the compiler directory is and copy the db2uext2.c in that directory and then run the compand. "cl db2uext2.c".

Thank you
 
Hi FM,
I'm going to assume that you need either a C or a C++ compiler, because the command 'cl' lists the file db2uext2.c which has a 'c' extension. You seem to have had some instructions telling you what to do from somewhere, so I'd like to think that hidden on your machine, presumably in C:\Program files\Sqllib is a c compiler. This is probably a fanciful notion! Try to find one by clicking Start-->Find-->Files or folders and search for a file called cl.* (this will search for all files called cl.anything). If this doesn't find anything, you can download a c compiler from although I think that looking on your machine is a better option. Let me know how you get on.
Marc
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top