Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I get SQL output to a file on AS400?

Status
Not open for further replies.

SkiLift

Programmer
Dec 18, 2003
47
US
I tried going into strsql and doing F13. From there I select 1, change session attributes. Then, I select output to file... I do a select statement and the output goes to the file. The problem is, I dont get column names and the numeric data is garbage (being print as chars)

How do I get proper output of a
select * from xyz
to a file?

 
Use Client Access and perform a file transfer or use the ODBC drivers to set up a connection and use Excel / Access to download the data.....

T. Blom
Information analyst
tbl@shimano-eu.com
 
Have a look at Query Manager Queries. STRQMQRY. You can code and de-bug interactively and then re-direct output to a DB2 table.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top