× 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 think you should check the CCSID of your >job< at
the point in time you are creating the view.

-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Hoteltravelfundotcom
Sent: Friday, August 23, 2013 2:43 PM
To: Midrange Systems Technical Discussion
Subject: Re: View to create a PF?

I didnt think to look - I didnt have a clue about this thing until a week ago. It's seemed a bit 'escoteric'. I do apologize for so many emails but this thing has been a problem for several weeks and the desire to end the issue already is very great.


On Fri, Aug 23, 2013 at 4:30 PM, Vern Hamberg <vhamberg@xxxxxxxxxxxxxxx>wrote:

Serious question - do you have a way to see the SQL Reference manual?
Answers to this kind of question are there - I hope I don't sound too
harsh here, but using this group as a reference manual is just not
polite. You CAN do some of the work yourself - obviously you've done a
lot, to your credit. But this kind of simple thing - the manual is the first place to go.

If you HAVE looked there and can't find it, it's perfectly OK to say
so - it is even the really good thing to say so.

If you would say that you are in a hurry and don't have time to look
it up
- consider the number of people who are very willing to help, and they
also are very busy - multiple your time by several thousand or and see
what the impact is.

I have to say, I simply won't answer things like this, if they continue.
Am I a bad guy? Perhaps. So be it!

:)

With sincere regards
Vern

----- Original Message -----
CHAR (6) is fine.
How do you code numeric like CAST(IRQOH# AS NUMERIC(13.2)


On Fri, Aug 23, 2013 at 11:23 AM, Hoteltravelfundotcom <
hoteltravelfun@xxxxxxxxx> wrote:

Buck, we did the translate on the server but it didn't help. On the
job would be on the SQL options I have tried that as well. I can't
change the CCSID on the LF only on a PF> I wil try ROb's idea CCSID
37 this is not
so
bad if it works.


On Fri, Aug 23, 2013 at 11:16 AM, <rob@xxxxxxxxx> wrote:

Resending, cutting off the trailing stuff with the word "shiRt" in it...
censors, please forgive me.






From: rob@xxxxxxxxx
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx
,
Date: 08/23/2013 11:10 AM
Subject: Re: View to create a PF?
Sent by: midrange-l-bounces@xxxxxxxxxxxx



Expanding further...
and assuming all columns are character...
CREATE VIEW astccdta.acbalmpk AS ( (SELECT LMLTPC,
COALESCE(IRLOC1,'') as IRLOC1, COALESCE(IRLOC2,'') as IRLOC2,
COALESCE(IRLOC3,'') as IRLOC3, IRPRT#, IRQOH#, IRWHS#,
'' as IEPRT#, '.00' as IEQOH#, '' as IELOC1, '' as IELOC2, '' as
IELOC3, '' as IERIDC, '' as IEWHS#

becomes

CREATE VIEW astccdta.acbalmpk AS (
(SELECT
CAST(LMLTPC AS CHAR(??) CCSID 37) AS LMLTPC,
CAST(COALESCE(IRLOC1,'') AS CHAR(??) CCSID 37) as IRLOC1,
CAST(COALESCE(IRLOC2,'') AS CHAR(??) CCSID 37) AS IRLOC2, ...

after awhile you quickly learn that fixing your underlying CCSID's
is probably a great idea.

Hopefully this view is for developer use only. Otherwise, why
would someone go to such trouble to create a view and still use
obfuscated column names?


--
This is the Midrange Systems Technical Discussion (MIDRANGE-L)
mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To
subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please
take a moment to review the archives at
http://archive.midrange.com/midrange-l.



--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take
a moment to review the archives at
http://archive.midrange.com/midrange-l.

--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take
a moment to review the archives at
http://archive.midrange.com/midrange-l.


--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/midrange-l.




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.