Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


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

Read-Only Read-Only Topic
Go
Search
Notify
Tools
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
 
Report 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: 11 | Location: Lynnwood, WA | Registered: November 02, 2007Report 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>,
 
Report This Post
<Allen Richardson>
posted
Gave the orignal name in INDEX its working fine now...Its not recognizing the Asnames Smiler
 
Report 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: 454 | Location: Europe | Registered: February 05, 2007Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

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-2020 Information Builders