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] Sql passthrough

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Sql passthrough
 Login/Join
 
Gold member
posted
Hi,
Iam trying to write a simple sql passthrough
somehow Iam getting below error....
...RETRIEVAL KILLED
0 NUMBER OF RECORDS IN TABLE= 0 LINES= 0
0 ERROR AT OR NEAR LINE 10 IN PROCEDURE sql_formula
(FOC003) THE FIELDNAME IS NOT RECOGNIZED: test_col
BYPASSING TO END OF COMMAND
(FOC009) INCOMPLETE REQUEST STATEMENT

The Source Code is:
ENGINE SQLORA SET DEFAULT_CONNECTION ERP
SQL SQLORA PREPARE SQLOUT FOR
select 'Testing' test_col from dual
;
TABLE ON TABLE HOLD AS H001
END

TABLE FILE H001
PRINT test_col
END

Would you please tell me the issue
We are using Webfoucs 7.6.9

This message has been edited. Last edited by: Kerry,


WebFocus 7.7.01
Desktop: Windows and Server: Unix
Excel, HTML, PDF
 
Posts: 69 | Registered: September 12, 2009Report This Post
Guru
posted Hide Post
Try putting the schema name prefixed to the table name. It seems to always be required.


(Prod: WebFOCUS 7.7.03: Win 2008 & AIX hub/Servlet Mode; sub: AS/400 JDE; mostly Self Serve; DBs: Oracle, JDE, SQLServer; various output formats)
 
Posts: 391 | Location: California | Registered: April 14, 2003Report This Post
Virtuoso
posted Hide Post
quote:
Originally posted by DD:
ENGINE SQLORA SET DEFAULT_CONNECTION ERP
SQL SQLORA PREPARE SQLOUT FOR
select 'Testing' AS test_col from dual
END

TABLE FILE SQLOUT
PRINT test_col
END


Next time just use the SQL Wizard, it will save you work.


"There is no limit to what you can achieve ... if you don’t care who gets the credit." Roger Abbott
 
Posts: 1102 | Location: Toronto, Ontario | Registered: May 26, 2004Report This Post
Expert
posted Hide Post
There's a SQL Wizard?


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Expert
posted Hide Post
Francis,

Using the SQL Report Wizard


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
 
Posts: 1972 | Location: Centennial, CO | Registered: January 31, 2006Report This Post
Member
posted Hide Post
is there a way we can add where clause to sql with value from the report


WebFocus 8, OS: iSeries
 
Posts: 22 | Registered: September 23, 2015Report This Post
Platinum Member
posted Hide Post
quote:
Originally posted by PrakashDT:
is there a way we can add where clause to sql with value from the report


Yes. Here's an example doing just that.

-* Get XML list for dropdown of the units of measure possible
-DEFAULT &H2O_SINGLE_ITM_DDL = 20867;


ENGINE SQLMSS SET DEFAULT_CONNECTION HI2
SQL SQLMSS PREPARE SQLOUT FOR
select UOM, DL01, DL01_W_DASH
from Unicode.h2o_uom_list(&H2O_SINGLE_ITM_DDL)
order by ord, DL01_W_DASH
END
TABLE FILE SQLOUT
PRINT
	 UOM
	 DL01
	 DL01_W_DASH
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT XML
END



webFOCUS 8207.15
WindowsServer 2019
 
Posts: 120 | Location: Minnesota | Registered: August 26, 2013Report 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] Sql passthrough

Copyright © 1996-2020 Information Builders