Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  iWay Software Product Forum on Focal Point    SET ASNAMES not working if using MYSQL database
Go
New
Search
Notify
Tools
Reply
  
SET ASNAMES not working if using MYSQL database
 Login/Join
 
<Allen Richardson>
posted
I am using MYSQL database and retrieving the data to be used in WebFOCUS table...my table names are too long to be used in JOIN so used SET ASNAMES to use the duplicate name in the Join but its not getting recognized.

I would be happy if someone can help me out.

THanking you
 
Reply With QuoteReport This Post
Member
posted Hide Post
Could you send a snippet of your code? I am not sure how you are using ASNAMES as a file name substitute for a join?


In FOCUS since 1980

 
Posts: 9 | Location: Lynnwood, WA | Registered: November 02, 2007Reply With QuoteReport This Post
<Allen Richardson>
posted
quote:
Originally posted by Allen Richardson:
 SET ASNAMES=ON
SQL MYSQL
  SELECT
    T1.idRoute   AS 'ID',
    T1.Name       AS 'ROUTENAME',
    T2.Description   AS 'DESCRIPTION',
    FROM ROUTE_TAB  T1 LEFT OUTER JOIN CHANNEL T2
    ON T1.idRoute = T2.idRoute
  END
-RUN
TABLE FILE SQLOUT
  PRINT *
  BY ID
  ON TABLE HOLD FORMAT FOCUS INDEX 'ID'
END 


Getting the error that it not recognize the ID.

I'm sure whether the SET ASNAMES affect the SQL query.

This message has been edited. Last edited by: <Allen Richardson>,
 
Reply With QuoteReport This Post
<Allen Richardson>
posted
Gave the orignal name in INDEX its working fine now...Its not recognizing the Asnames Smiler
 
Reply With QuoteReport This Post
Guru
posted Hide Post
ASNAMES only works with TABLE requests. It helps to store fields with a certain name.

Next time you could try to put ?FF in your code. Then you see the exact names and aliases.


Test: WF 8.2
Prod: WF 8.2
DB: Progress, REST, IBM UniVerse/UniData, SQLServer, MySQL, PostgreSQL, Oracle, Greenplum, Athena.
 
Posts: 399 | Location: Europe | Registered: February 05, 2007Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  iWay Software Product Forum on Focal Point    SET ASNAMES not working if using MYSQL database

Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.