|
I'm having trouble converting from data type to another. I understand if I
attempt to go from character type column to numeric issues will occur if all
the data isn't numeric in that column. But going from a numeric column to
char, I thought would be easy. Here is what I've tried doing with very no
success: I used the CAST function with interactive SQL. I went to run an
Interactive SQL statement such as:
UPDATE Library1/BOOK2 SET BOOK_CODE1 = cast(book_code as char)
Book_Code1 is char (I've changed the length on this)
Book_Code is numeric (I've tried numeric, decimal) 4,0
The error I receive: Significant digits truncated during CAST from numeric
to character.
Then I thought about looking at the data through a SELECT CAST(Book_code as
char) from library1/book2
returns -- + (plus sign only)
Any suggestions?
Glen
----------------------------------------------------------------------
Glen Orsburn
CIS - Instructor @ Fox Valley Technical College
1825 N Bluemound Dr
Appleton, WI 54912
----------------------------------------------------------------------
web-page: cis.foxvalleytech.com/orsburn
External page: netnet.net/~orsburn
+---
| This is the RPG/400 Mailing List!
| To submit a new message, send your mail to RPG400-L@midrange.com.
| To subscribe to this list send email to RPG400-L-SUB@midrange.com.
| To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.