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 > Informix > Use List Command to sent output into a text file

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-12-04, 05:13
hew212 hew212 is offline
Registered User
 
Join Date: Dec 2003
Posts: 26
Question Use List Command to sent output into a text file

Can I know use List Command to sent output to a text file?
Reply With Quote
  #2 (permalink)  
Old 07-12-04, 08:22
gurey gurey is offline
Registered User
 
Join Date: Aug 2003
Location: Argentina
Posts: 780
Hi,

OUTPUT TO {"file-name" | PIPE "program-name"}
[WITHOUT HEADINGS] SELECT-statement
Reply With Quote
  #3 (permalink)  
Old 07-13-04, 02:05
hew212 hew212 is offline
Registered User
 
Join Date: Dec 2003
Posts: 26
can u give me an example?

Quote:
Originally Posted by gurey
Hi,

OUTPUT TO {"file-name" | PIPE "program-name"}
[WITHOUT HEADINGS] SELECT-statement
Reply With Quote
  #4 (permalink)  
Old 07-13-04, 10:02
mjldba mjldba is offline
Registered User
 
Join Date: Dec 2003
Location: North America
Posts: 139
example

Hi,

Example of how to generate a pipe "|" delimited text file

unload to "employee_data" delimiter "|"
select name, address,ZIP
from empl_data
Reply With Quote
  #5 (permalink)  
Old 07-13-04, 14:40
tmullins tmullins is offline
Registered User
 
Join Date: Aug 2003
Posts: 68
Example

OUTPUT TO "table_name.txt" WITHOUT HEADINGS
SELECT tabname
FROM systables
WHERE tabid > 99
Reply With Quote
  #6 (permalink)  
Old 07-14-04, 02:03
hew212 hew212 is offline
Registered User
 
Join Date: Dec 2003
Posts: 26
Thank you for your help. However, this is the sql Statement.
I wish to know Uniquery "LIST" command. I need to LIST a file call MB.MST and then sent the output to a text file. I can't use SQL cause my unidata does not support the SQL stament.
Quote:
Originally Posted by tmullins
Example

OUTPUT TO "table_name.txt" WITHOUT HEADINGS
SELECT tabname
FROM systables
WHERE tabid > 99
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