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



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?



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.