It's based on the width of the screen. As soon as a horizontal format no
longer fits, it reverts to a vertical format.
If you have very long column names then you can alter this effect by giving
these columns alias names, such as:
SELECT a_very_long_name avln, nother_v_long_name nvln
FROM table
If you have very long character fields, you can truncate them using the
substring syntax:
SELECT long_char[1,20], nother_long_char[1,5]
FROM table
And of course you can combine the two.
Hope that helps,
--
Mark.
+-------------------------------------------------------------------------+
|Mark D. Stock - The West Solutions Group http://www.west.co.za |
| The Informix FAQ is at http://www.iiug.org |
|mailto:ma...@west.co.za +------------------------------------------------+
|Tel: +27 11 803 2151 |If it doesn't work... force it! |
|Fax: +27 11 803 2189 |If it breaks... it needed replacing anyway! |
|Cell: +27 83 250 2325 |Well, that's how I code anyway! |
+------------------------+------------------------------------------------+
:Can anyone point me in the right direction on how to control the
:output of dbaccess. Sometimes it produces output that is
:presented accross the page, other times it produces output down
:the page. What logic is it following?
When there is space for the output within 80 characters the output is
displayed across. When it would need more than 80 characters it
displays down the page.
I haven't ever tried it on a terminal set to more than 80 characters
across. May be it will display across the page up to the with of the
terminal. I doubt that though.
Even when outputing to a file it does the same thing.
Nils.My...@idg.no
NM Data AS, P.O.Box 9090 Gronland, N-0133 Oslo, Norway
My opinions are those of my company
+------------------------------------------------------------------+
| Striving to be what the liberals call a "tax-cuts-for-the-rich, |
| mean-spirited, intolerant, radical, religious-right, extremist" |
+------------------------------------------------------------------+
ftp://ftp.iiug.org/pub/informix/pub/reform_sql.Z
http://www.iiug.org/software/software_index.html
for one approach to reformatting isql/dbaccess output.
Walt.
--
Walt Hultgren Internet: wa...@rmy.emory.edu (IP 170.140.97.4)
Emory University UUCP: {...,gatech,rutgers,uunet}!emory!rmy!walt
954 Gatewood Road, NE BITNET: walt@EMORY
Atlanta, GA 30329 USA Voice: +1 404 727 0648