If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > problem relted to db2clp

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-16-07, 06:53
ankur02018 ankur02018 is offline
Registered User
 
Join Date: Jun 2007
Posts: 189
Smile problem relted to db2clp

suppose i execute command

select ID from TPUBI

if there are large no of records

i cant see the first one

how could see in window record at a time then press enter other window record shows
Reply With Quote
  #2 (permalink)  
Old 08-16-07, 07:51
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
You cannot do that as far as I know. You best bet would be to redirect the output to a file for viewing. To do this you would use a command like:

update command options using z on d:\merge_andy_str.sql
select * from bigtable
update command options using z off

Andy
Reply With Quote
  #3 (permalink)  
Old 08-16-07, 09:10
guyprzytula guyprzytula is offline
Registered User
 
Join Date: Jun 2006
Posts: 471
pipe the output to a file - pg the file - head - tail
__________________
Best Regards, Guy Przytula
DB2 UDB LUW certified V6/7/8
Reply With Quote
  #4 (permalink)  
Old 08-17-07, 04:36
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
Additionally, You can use cursors or execute separate SQL statements. You can also avoid the files by directly piping the output of the query to a pager:
Code:
$ db2 "select ..." | less
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
Reply With Quote
  #5 (permalink)  
Old 08-17-07, 04:59
grofaty grofaty is offline
Registered User
 
Join Date: Jan 2003
Posts: 1,570
Quote:
Originally Posted by stolze
Additionally, You can use cursors or execute separate SQL statements. You can also avoid the files by directly piping the output of the query to a pager:
Code:
$ db2 "select ..." | less
Hi,
or on Windows...
Code:
$ db2 "select ..." | more
Pressing Enter list downs one row at a time. Pressing space list downs one page at a time.
Thanks,
Grofaty
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On