User Rating: 5 / 5
Q: How do I save the results of an SQL query to an output file? I'm using interactive SQL to do queries, and I need to be able to save the results into a table.
A: When you are in interactive SQL, press F13. Select option 1-Change Session Attributes. Change the SELECT output parameter to 3 (which means that output goes to a file). You will be asked for a name and library for the output file. You can also choose whether or not to create the file or whether to append to an existing file.
- Brian Singleton
Brian Singleton is former editor of Midrange Computing. He has worked in the IBM midrange arena for many years, performing every job from backup operator to programmer to systems analyst to technology analyst for major corporations and IBM Business Partners. He also has an extensive background in the PC world. Brian also developed a line of bestselling Midrange Computing training videos, authored the bestselling i5/OS and Microsoft Office Integration Handbook, and has spoken at many popular seminars and conferences.
MC Press books written by Brian Singleton available now on the MC Press Bookstore.
i5/OS and Microsoft Office Integration Handbook Harness the power of Microsoft Office while exploiting the iSeries database. List Price $79.95 Now On Sale |
LATEST COMMENTS
MC Press Online