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




On 14/07/2005, at 9:00 AM, Brad Stone wrote:

It is set that way so that the CPYSPLF will work.  There's
no way around that as far as this customer is concerned.

You only need to use IGCDTA(*YES) if the spooled file actually contains DBCS data. If it doesn't then it will be copied successfully to a CHAR field.

I noticed this change on V5R3 and thought "why would they
do this?  Now every spooled file created is set to DBCS".

Because it makes life much simpler for everybody. No longer need two versions of the OS. No longer need to test QIGC and modify behaviour. Can create DBCS capable files on all systems. Force Americans to realise there is a "rest of the world"--always a good thing. Some things are different but mostly it's a step in the right direction and long overdue.

Either way, I assume then that there is no way around the
"open" data type.

If you drop the IGCDTA(*YES) you'll get a CHAR field. If the spooled file contains only SBCS data then everything should work as before.

The question would then be, how would
SQL handle this type of data, or how should it?  Or can it?

Of course SQL can handle Open fields. You think SQL is not used in Japan or China or Korea? SQL handles the data type itself fine. See the SQL Reference for any special considerations. What it might be complaining about is that a DBCS field cannot be processed in an SBCS job because two bytes can't be squeezed into one byte so CCSID conversion fails. So ... what error message is received when SQL is used to process the file? All you said was:

On V5R3 it's now showing as a data type of "Open" which
is messing up their SQL statements that they're doing on
the file.

"Messing up" is such an accurate description. What's it really doing?

Regards,
Simon Coulter.
--------------------------------------------------------------------
   FlyByNight Software         AS/400 Technical Specialists

   http://www.flybynight.com.au/
   Phone: +61 3 9419 0175   Mobile: +61 0411 091 400        /"\
   Fax:   +61 3 9419 0175                                   \ /
                                                             X
                 ASCII Ribbon campaign against HTML E-Mail  / \
--------------------------------------------------------------------



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.