Q
Evaluate Weigh the pros and cons of technologies, products and projects you are considering.

Converting dates in character fields

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.

This was last published in September 2004

Dig Deeper on DB2 UDB (universal databases)

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchDataCenter

Close