Informix DB: 11.50.FC3
unix AIX: 6.1 o/s
i'm executing an isql statement and i want to suppress the headings. I'm using a unix script to execute the isql command and the unix script takes care of creating the output file...i'm not creating the output file in my isql statement.
Unix command isql dbtest getlist.sql > output.txt
getlist.sql executes the following sql:
select tablename
from tablelist
where tablename like '%_r_%';
my result set:
tablename
---------
ca_r_ttnam
ct_r_newsr
nm_r_jnews
tx_r_fnews
(4 rows listed)
I don't want the column heading, the "-----------", nor the "(4 rows listed)" to print. I know i can use the "without headings" keywords to suppress the headings, but that only works if i allow isql to create my output file (as far as i know). For example,
OUTPUT TO /u1/txt/output.txt WITHOUT HEADINGS select tablename from tablelist where tablename like '%_r_%';
But again, my unix script is creating the ouput file.
Any help is appreciated! Hope i'm in the correct forum to post this question.
unix AIX: 6.1 o/s
i'm executing an isql statement and i want to suppress the headings. I'm using a unix script to execute the isql command and the unix script takes care of creating the output file...i'm not creating the output file in my isql statement.
Unix command isql dbtest getlist.sql > output.txt
getlist.sql executes the following sql:
select tablename
from tablelist
where tablename like '%_r_%';
my result set:
tablename
---------
ca_r_ttnam
ct_r_newsr
nm_r_jnews
tx_r_fnews
(4 rows listed)
I don't want the column heading, the "-----------", nor the "(4 rows listed)" to print. I know i can use the "without headings" keywords to suppress the headings, but that only works if i allow isql to create my output file (as far as i know). For example,
OUTPUT TO /u1/txt/output.txt WITHOUT HEADINGS select tablename from tablelist where tablename like '%_r_%';
But again, my unix script is creating the ouput file.
Any help is appreciated! Hope i'm in the correct forum to post this question.