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



I'm using a php script to get data via odbc (both db and Php - in Pase
mode - are on the same Iseries).

If I run this query :
"select  Code, trim(FirstName) concat LastName from Table"
I get the correct result for both fields returned, apart that FirstName and
LastName are joined together.

But if I run this:
"select  Code, trim(FirstName) concat ' ' concat LastName from Table"
I get the correct result for Code but ebcdic untraslated data for the second
column.

However if I code:
"select  Code, trim(FirstName) concat substr(FirstName, 30, 1) concat
LastName from Table" (assuming that position 30 of Firstame is a blank) I
get FirstName and LastName separated by one blank char in readable form.

Does anybody has got such a problem ?

Thanks.
Beppe.


As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.