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  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Synonym for FOCUS SQL Query

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Synonym for FOCUS SQL Query
 Login/Join
 
Silver Member
posted
Hi,
I’ve 2 focus files where I’ve written SQL as below and I want to create Master File and Access File using the below SQL dataset. Please suggest

Please let me know what is the suffix and connection details I’ve to provide for respective synonyms(highlighted in yellow) for a FOCUS tables.

CAR1.SQL FILE
 SELECT CAR FROM CAR WHERE COUNTRY = 'ENGLAND' 


CAR1.MAS FILE
 FILENAME=CAR1, SUFFIX=[B][COLOR:YELLOW]??[/COLOR][/B]  , $
 VARIABLE NAME=&&DATASECTOKEN,  $
  SEGMENT=CAR1, SEGTYPE=S0, $
    FIELDNAME=CAR, ALIAS=CAR, USAGE=A20, ACTUAL=A4, FIELDTYPE=I, $
 


CAR1.acx
 SEGNAME=IBD_DET_ENT,
   CONNECTION=[COLOR:YELLOW]??[/COLOR][B]??[/B],
   DATASET=baseapp/ibd_det_ent.sql,
   SUBQUERY=Y, $
 

This message has been edited. Last edited by: <Kathryn Henning>,


WebFOCUS 8.1.03
Windows, Linux All Outputs
 
Posts: 46 | Location: India | Registered: August 18, 2011Report This Post
Expert
posted Hide Post
Create New Synonym from the associated app folder which has access to the view or SQL based table and go from there.
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Silver Member
posted Hide Post
Doug,
I'm using this Synonym as input for DBA Security master file.
Please let me know how to create Synonym for SQL Dataset


WebFOCUS 8.1.03
Windows, Linux All Outputs
 
Posts: 46 | Location: India | Registered: August 18, 2011Report This Post
Silver Member
posted Hide Post
Hi,
Please suggest HOW TO CREATE MASTER FILE USING SQL DATASET OF CAR FILE(ideally using FOCUS file SQL).


WebFOCUS 8.1.03
Windows, Linux All Outputs
 
Posts: 46 | Location: India | Registered: August 18, 2011Report This Post
Master
posted Hide Post
I've never seen it accessed it that way.. I've usually made the synonym connect directly to the table or stored proc and use webfocus to do the query or execution with parameters into the proc.



- FOCUS Man, just FOCUS!
-----------------------------
Product: WebFOCUS
Version: 8.1.04
Server: Windows 2008 Server
 
Posts: 578 | Registered: October 01, 2014Report This Post
Silver Member
posted Hide Post
Gavin,
Usually we create Master File for external data set like TEXT, COMT, FIX files. Similarly there is option to create Master File for SQL query. I know to create MasterFile for RDBMS sql file but I'm not sure how to create Synonym for a FOCUS SQL file.

My example on top will work for RDBMS SQL.


WebFOCUS 8.1.03
Windows, Linux All Outputs
 
Posts: 46 | Location: India | Registered: August 18, 2011Report This Post
Virtuoso
posted Hide Post
I think you mean something like this? (this example uses Oracle):
-* Prepare the SQL statement
SQL SQLORA PREPARE MYSTATEMENT FOR
-INCLUDE CAR1.SQL
;
END

-* Execute the prepared SQL statement
TABLE FILE MYSTATEMENT
PRINT *
END
-RUN

-* To see where the master file(s) were generated:
WHENCE MYSTATEMENT MASTER
WHENCE MYSTATEMENT ACCESS


The master gets generated automatically.


WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010
: Member of User Group Benelux :
 
Posts: 1669 | Location: Enschede, Netherlands | Registered: August 12, 2010Report This Post
Silver Member
posted Hide Post
Wep5622,
I know how to create using Oracle or Teradata but I need to create master file using Focus files.


WebFOCUS 8.1.03
Windows, Linux All Outputs
 
Posts: 46 | Location: India | Registered: August 18, 2011Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Synonym for FOCUS SQL Query

Copyright © 1996-2020 Information Builders