× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Helping an associate...has an RPG program that does this:

exec sql
create table qtemp/Work2 as
(select cast (it.cprod# as char(15) ccsid 37) as cprod#,
cast (it.cloctn as varchar(8) ccsid 37) as cloctn,
cast (it.cboxst as varchar(3) ccsid 37) as cboxst
from qtemp/prdmstwght as it
order by 1)
with data;

And then uses a CPYTOIMPF to go to an IFS file.

Column it.cloctn has a value of 5E72, but it's being converted to
5.00E+72. The column is of type character in the table. I think SQL is
looking at the value and deciding it's a number in exponential
notation. How can I do this and keep the character value of it.cloctn?

Thanks!

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 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.