× 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.



The program in question was going to to moving data from one table
with a 10a field, 'ABC1234567', to another table in which the field
could have been either 7p0 (old), as 1234567, or 10a (new), as
'ABC1234567'.

insert into <...>
select <...>


I didn't think v5r4's implicit casting was up to the task...but if it is....

Meanwhile, I think we got another solution that doesn't require the
program know what which destination format is in play..

Basically, we've got a central corporate server and many distributed
field boxes. We've got to expend one of our file fields from 7p0 to
10a. Not only is the file in question used on both central and field
boxes, but the field is part of data that is transferred from central
to the field boxes and loaded via a CPYF.

The plan is to expand the central system first, then over a period of
weeks, roll the changes to the field boxes. Between the time the
central box converts and all the field boxes are converted, the data
in 10a file from the central box would need end up in either the new
10a field or the old 7p0 field on a field box.

Thus the original question...

In talking to the developer, it seems to me that we can simply have
copies of the transmission file, the old 7p0 one and a new 10a one.
The program containing the CPYF will be included in the changes rolled
to the field boxes to copy from the file.

Charles

On Fri, Mar 4, 2011 at 2:45 PM, CRPence <CRPbottle@xxxxxxxxx> wrote:
Any pros/cons to the above?

Does anybody have any additional ideas?


  Perhaps... Is there really any requirement to know the difference?
There is implicit casting between the two types, and explicit casing is
legitimate to get a consistent type into the non-SQL program variables.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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.