×
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.
It's been a long day so I'm hoping someone can help me figure out what
I'm doing wrong:
create table library/newfile as
(select field1, field2, char(35) as newfield, field3 from oldfile)
definition only
If you break it down to its simplest form, all will be revealed. Below is
your inner select and its result. It makes sense: it is casting 35 as a
character field, just like you requested. I don't know how to do what
you're trying to do except with ATLER.
select field1, field2, char(35) as newfield, field3 from oldfile
FIELD1 FIELD2 FIELD4 FIELD3
a b 35 c
d e 35 f
g h 35 i
******** End of data ********
create table library/newfile as
(select field1, field2, field3 from oldfile)
definition only
ALTER TABLE LIBRARY/NEWFILE ADD COLUMN NEWFIELD CHAR (35)
Dennis Lovelady
http://www.linkedin.com/in/dennislovelady
--
It's great to be smart 'cuz then you know stuff.
As an Amazon Associate we earn from qualifying purchases.
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.