Unix Technical Forum

Xemacs & DB2 CLP (W2K)

This is a discussion on Xemacs & DB2 CLP (W2K) within the DB2 forums, part of the Database Server Software category; --> Having found and followed the excellent instructions in http://www7b.software.ibm.com/dmdd/l...206mathew.html I can use the CLP under Xemacs (21.4.11 and .13). ...


Go Back   Unix Technical Forum > Database Server Software > DB2

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-26-2008, 03:34 PM
Bruce MacDonald
 
Posts: n/a
Default Xemacs & DB2 CLP (W2K)

Having found and followed the excellent instructions in

http://www7b.software.ibm.com/dmdd/l...206mathew.html

I can use the CLP under Xemacs (21.4.11 and .13). However I still have a
couple of problems I would appreciate advice on:

I am getting an extra blank line after each line of output from db2.

I still can't do C-c C-r to create a reasonably complex trigger that has
statement termination characters in it. There seem to be problems with
parsing these declarations in Command Centre as well - the only reliable way
I have found to get them to work is to cut and paste into the Development
Centre or run a sql file with the -f option.

TIA,
Bruce


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-26-2008, 03:34 PM
Bruce MacDonald
 
Posts: n/a
Default Re: Xemacs & DB2 CLP (W2K)

Scratch the second question - the old 'put a blank comment after every
embedded ;' works fine using Xemacs. I would very much appreciate a
solution to the blank lines, however! Note that these are not ^M - they
simply show up as extra lines.

"Bruce MacDonald" <brucemac@removeme.netcomuk.metoo.co.uk> wrote in message
news:blii5i$rd3$1$8300dec7@news.demon.co.uk...
> Having found and followed the excellent instructions in
>
>

http://www7b.software.ibm.com/dmdd/l...206mathew.html
>
> I can use the CLP under Xemacs (21.4.11 and .13). However I still have a
> couple of problems I would appreciate advice on:
>
> I am getting an extra blank line after each line of output from db2.
>
> I still can't do C-c C-r to create a reasonably complex trigger that has
> statement termination characters in it. There seem to be problems with
> parsing these declarations in Command Centre as well - the only reliable

way
> I have found to get them to work is to cut and paste into the Development
> Centre or run a sql file with the -f option.
>
> TIA,
> Bruce
>
>



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-26-2008, 03:34 PM
Serge Rielau
 
Posts: n/a
Default Re: Xemacs & DB2 CLP (W2K)

Did you use db2 -td<something>?

Cheers
Serge


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-26-2008, 03:35 PM
Bruce MacDonald
 
Posts: n/a
Default Re: Xemacs & DB2 CLP (W2K)

Serge,

Here are the relevant lines from my init.el:

(setq sql-db2-program "C:/Program Files/ibm/sqllib/bin/db2cmd.exe")
(setq sql-db2-options '("-c" "-i" "-w" "db2" "-tv"))

Thanks,
Bruce

"Serge Rielau" <srielau@ca.eyebeem.com> wrote in message
news:blktv0$ec4$1@hanover.torolab.ibm.com...
> Did you use db2 -td<something>?
>
> Cheers
> Serge
>
>



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-26-2008, 03:35 PM
Serge Rielau
 
Posts: n/a
Default Re: Xemacs & DB2 CLP (W2K)

OK, try this:
(setq sql-db2-options '("-c" "-i" "-w" "db2" "-td% -v"))

Then use % as an end of statement delimiter.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 06:59 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com