Unix Technical Forum

setting pause on output in CLP (Db2 9)

This is a discussion on setting pause on output in CLP (Db2 9) within the DB2 forums, part of the Database Server Software category; --> Hi, I am using db2 9 CLP. When the output of the select command is more than a page ...


Go Back   Unix Technical Forum > Database Server Software > DB2

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-27-2008, 01:04 PM
Baski
 
Posts: n/a
Default setting pause on output in CLP (Db2 9)

Hi,

I am using db2 9 CLP. When the output of the select command is more
than a page the messages scrolls out of the page. Is it possible to
pause the messages so that they can be viewed one page at a time,
( just like 'set pause on' in Oracle sql prompt). I am unable to find
any command options that correspons to this setting.

Thanks.
Baski.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-27-2008, 01:04 PM
Jan M. Nelken
 
Posts: n/a
Default Re: setting pause on output in CLP (Db2 9)

Baski wrote:
> Hi,
>
> I am using db2 9 CLP. When the output of the select command is more
> than a page the messages scrolls out of the page. Is it possible to
> pause the messages so that they can be viewed one page at a time,
> ( just like 'set pause on' in Oracle sql prompt). I am unable to find
> any command options that correspons to this setting.
>
> Thanks.
> Baski.
>


Windows:
db2 select * from mytable | more

or

Linux:
db2 select \* from mytable | pg


Jan M. Nelken

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-27-2008, 01:04 PM
Baski
 
Posts: n/a
Default Re: setting pause on output in CLP (Db2 9)

> Windows:
> db2 select * from mytable | more
>
> or
>
> Linux:
> db2 select \* from mytable | pg
>
> Jan M. Nelken


Hi Nelken,

It did not work. (on windows)

db2 => select * from ict_dim_time | more
SQL0104N An unexpected token "|" was found following "* from
ict_dim_time".
Expected tokens may include: "<space>". SQLSTATE=42601
db2 =>

any idea???

Thanks.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-27-2008, 01:04 PM
Gregor =?UTF-8?B?S292YcSN?=
 
Posts: n/a
Default Re: setting pause on output in CLP (Db2 9)

Baski wrote:

>> Windows:
>> db2 select * from mytable | more
>>
>> or
>>
>> Linux:
>> db2 select \* from mytable | pg
>>
>> Jan M. Nelken

>
> Hi Nelken,
>
> It did not work. (on windows)
>
> db2 => select * from ict_dim_time | more
> SQL0104N An unexpected token "|" was found following "* from
> ict_dim_time".
> Expected tokens may include: "<space>". SQLSTATE=42601
> db2 =>
>
> any idea???
>
> Thanks.


db2 "select * from ict_dim_time" | more

--
-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-
| In A World Without Fences Who Needs Gates? |
| Experience Linux. |
-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-27-2008, 01:04 PM
Baski
 
Posts: n/a
Default Re: setting pause on output in CLP (Db2 9)

On Aug 10, 1:25 pm, Gregor Kova <gregor.ko...@mikropis.si> wrote:
> Baski wrote:
> >> Windows:
> >> db2 select * from mytable | more

>
> >> or

>
> >> Linux:
> >> db2 select \* from mytable | pg

>
> >> Jan M. Nelken

>
> > Hi Nelken,

>
> > It did not work. (on windows)

>
> > db2 => select * from ict_dim_time | more
> > SQL0104N An unexpected token "|" was found following "* from
> > ict_dim_time".
> > Expected tokens may include: "<space>". SQLSTATE=42601
> > db2 =>

>
> > any idea???

>
> > Thanks.

>
> db2 "select * from ict_dim_time" | more
>
> --
> -~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-
> | In A World Without Fences Who Needs Gates? |
> | Experience Linux. |
> -~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-- Hide quoted text -
>
> - Show quoted text -


Thanks it worked, actually I was trying | more in 'db2 =>' prompt
rather than at the OS prompt. That was the problem.
Any Idea abt doing the same thing in db2=> prompt.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-27-2008, 01:04 PM
Serge Rielau
 
Posts: n/a
Default Re: setting pause on output in CLP (Db2 9)

Baski wrote:
> Thanks it worked, actually I was trying | more in 'db2 =>' prompt
> rather than at the OS prompt. That was the problem.
> Any Idea abt doing the same thing in db2=> prompt.

There is no option for it. No hidden feature....

Cheers
Serge
--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab
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 09:27 PM.


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