Extraction problems of DB2 file When viewing the information in the flat file through iSeries some of the columns are full of special characters and symbols rather than the expected text characters. It is unlikely they are blobs because the text normally contained in the columns would be very short. Why is it in this format and how can I successfully extract the files into readable format?
This is dependent on the code page(CCSID) of the data and the tool/environment that you are using to view the DB2 database table as a flat file. If you want to use non-database interfaces to view DB2 data, then you should probably use the CPYTOIMPF CL command to export the DB2 data into a 'true' byte-stream file. Actually, iSeries Navigator (formerly Operations Navigator) provides a very easy way to correctly view the data in a DB2 table - all you do is double-click on a table or physical file and the data is presented in a new window that's scrollable.
MORE INFORMATION ON THIS TOPIC
Search400.com's targeted search engine: Get relevant information on DB2/400.
The Best Web Links: tips, tutorials and more.
Check out this online event, Getting the Most out of SQL & DB2 UDB for the iSeries.
Dig Deeper on Oracle on iSeries
Related Q&A from Kent Milligan
To solve the SQL error -321 on IBM i6.1, use the new values statement to overcome the error. If you are using an older release, declare a cursor ... Continue Reading
When working with DB2 files with columns that have both short and long names, there is no option choose which column names are returned via ODBC ... Continue Reading
When developing tables in a parent-child relationship, use a primary key and a foreign key along with a unique ID to make your database easier to ... Continue Reading
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.