473,378 Members | 1,434 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

How to select a huge table in a readable format?

i need to list the contents of a very huge table. now i use the query SELECT * to do it. but the result is not understandable. rows are overlapped in the result.
kindly provide a solution for doing this. is there any other way rather than using SELECT *??

NB: I want the whole table to be displayed using a single qery. and not like using select (name, id etc) from table name and going for the next set of columns in another select.

Kindly help me if you know a solution
May 20 '10 #1
3 2385
patjones
931 Expert 512MB
@balucec
Are you viewing the results in the DB2 terminal window, or are you having this problem when you export the report to an external file (for instance .txt, .xls, or something like that)?

Pat
May 25 '10 #2
@zepphead80
this is wen i view it in db2 terminal.
pls explain how to import it to external file
Jun 15 '10 #3
patjones
931 Expert 512MB
Bear in mind that I'm using a TSO environment on a Windows XP machine, so this process might be a little different if, for instance, you are using UNIX.

The syntax that I use to do this, when the report is being viewed, is

Expand|Select|Wrap|Line Numbers
  1. EXPORT REPORT TO datasetname

where datasetname has to be eight characters or less. You need to make note of the full name that the system assigns to your dataset. This is the basic form of the command; there are various switches that can be used to refine the output. For instance, you can specify output in XML, HTML, etc.

What this does is puts your information in a TSO dataset that resides on the mainframe. Again, what you do from this point might differ from what I do in my enviroment.

I have to back out to the main DB2 menu where there is a file transfer option. I select that option and then pick Transfer > Receive... from the menu in the terminal window. This brings up a dialog that allows you to specify where on your local drive or network to put the file, and specify what the name of the dataset is.

If the file gets successfully exported, you have a choice as to what application to use to open; I usually open it with Excel, but I have occasionally used the HTML data format option and opened it in a browser window.

Let me know what you think, and perhaps we can figure out what to do in your specific situation.

Pat
Jun 15 '10 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

13
by: Botao | last post by:
Hi, Every Guru, I'd like to put a button on a page. When clicking the button, the table below it gets selected so the user can do Ctrl C to copy the entire table without using the mouse to...
1
by: tnhoe | last post by:
Hi, I try a few grid table and they are nice BUT loading thousand rows of data are slow. May be there is any simpler yet attractive table style format I can use just to beautify the current...
2
by: Gordowey | last post by:
I have the next question, and i would like to hear what do you think about, and if is there a better solution for "my problem" here is the question, I have a huge table with 60GB of data (image...
4
by: Serge Klokov | last post by:
Hello! I have a Oracle table with a BLOB field. Each field is actually a simple text file of several lines. How to get this BLOB fields in readable format? I tryied something like...
5
by: mphanke | last post by:
Hi, can somebody tell me how to convert the date from a Paradox .DB to human readable format? I need to write a tool to convert the 4 Bytes representing the date to a human readable format. ...
1
by: mjf | last post by:
Hello, We have seen up to 11 db2fm processes running at the same time, which was consuming 100% of CPU. We could not run anything else on the machine because of this. We have only one DB2...
2
by: Racerx | last post by:
Hi All: I am new to db2 databases. I use db2 V8.2 on AIX 5 platform. My database has 6 primary Log files and no secondary log files. When I try to read these files from the default locationi...
2
by: Jen | last post by:
I have a Hashtable serializing to a binary file ok but I really would like the file to be in XML format or other readable format. I DO NOT want to change all my code, I want to keep the Hashtable...
2
by: shannonwhitty | last post by:
I am able to extract dates in the correct format i.e. SELECT CONVERT(VARCHAR(8), GETDATE(), 3) =dd/mm/yy My issue is that my users are selecting a date in this format and I need to select...
0
by: Rob Weir | last post by:
On 13 Aug 2008, rkmr wrote: http://mail.python.org/pipermail/python-list/1999-December/018519.html is a good start - just need to change the table to something like:: _abbrevs = (and add a...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.