We have files that have dates in character fields in the format "mm/dd/yy". The dates are stored in character fields with the '/' included so they can be converted to tab delimited file with the CPYTOIMP command. Under V5R1, V5R2 the dates with slashes '/' converted perfectly. Now under V5R3, the character fields are converted to gibberish. Do you have any clue as to what maybe happening?
In V5R3, the efficiency of CPYFRMIMPF was changed by not copying the data to an intermediate file. In the past usage of the intermediate file took care of CCSID conversions. Now with V5R3, no conversion of the data occurs when the target table has a CCSID of 65535 or no explicit CCSID. Without more details on your issue, I'd guess that your problem would be solved by changing the CCSID of your target table. ALTER TABLE statement is the easiest way to change the CCSID of your text columns.
MORE INFORMATION ON THIS TOPIC
Check out this Search400.com Featured Topic: Database issues resolved
Search400.com's targeted search engine: Get relevant information on DB2/400.
The Best Web Links: Tips, tutorials and more.
Dig Deeper on DB2 UDB (universal databases)
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.