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] Netezza PREPARE

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Netezza PREPARE
 Login/Join
 
Guru
posted
Doing a SQL Pass-thru on Netezza, trying to do a prepare, something like this:

SQL SQLNEZ PREPARE SQLOUT FOR (
SELECT * FROM tname
)
END
TABLE FILE SQLOUT
PRINT *
END

I can do it in SQL Server but Netezza does not seem to support it. Anybody got an idea?

Linux RedHat, WF 8.0.06
Tia
Håkan

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


WebFOCUS DS 8.0.06/08 DS/AS
WebFOCUS RS 8.0.08 (Linux/IBM i)
WebFOCUS Client 8.0.06 (Linux)
 
Posts: 319 | Location: Stockholm, Sweden | Registered: February 04, 2004Report This Post
Expert
posted Hide Post
Hi Håkan,

Try this -
SQL SQLNEZ PREPARE SQLOUT FOR
SELECT * FROM tname
;
TABLE FILE SQLOUT
PRINT *
END

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Guru
posted Hide Post
Tony, it was about there I started, and having tried a few variants.

Either I get EDA no data or some error message from Netezza. Give it a try yourself on our box (yes, I'm at Arcadia for the moment)

/H


WebFOCUS DS 8.0.06/08 DS/AS
WebFOCUS RS 8.0.08 (Linux/IBM i)
WebFOCUS Client 8.0.06 (Linux)
 
Posts: 319 | Location: Stockholm, Sweden | Registered: February 04, 2004Report This Post
Master
posted Hide Post
The following SQL passthrough, to Netezza, returns the expected data for me:
ENGINE SQLNEZ SET DEFAULT_CONNECTION mycon
END
ENGINE SQLNEZ
select *
from mytable
;
-*
TABLE FILE SQLOUT
PRINT *
END
-RUN  




Pilot: WebFOCUS 8.2.06 Test: WebFOCUS 8.1.05M Prod: WebFOCUS 8.1.05M Server: Windows Server 2016/Tomcat Standalone Workstation: Windows 10/IE11+Edge Database: Oracle 12c, Netezza, & MS SQL Server 2019 Output: AHTML/XLSX/HTML/PDF/JSCHART Tools: WFDS, Repository Content, BI Portal Designer & ReportCaster
 
Posts: 822 | Registered: April 23, 2003Report This Post
Guru
posted Hide Post
David, that works fine, but the idea is being able to retrieve the rows and apply e.g. a DEFINE on SQLOUT, without having to produce an intermediate file.


WebFOCUS DS 8.0.06/08 DS/AS
WebFOCUS RS 8.0.08 (Linux/IBM i)
WebFOCUS Client 8.0.06 (Linux)
 
Posts: 319 | Location: Stockholm, Sweden | Registered: February 04, 2004Report This Post
Expert
posted Hide Post
Hi Håkan,

Yes, I know where you are currently Wink.

Your first post didn't give the impression that you wanted DEFINEs to be passed to NETEZZA, just SQL passthru.

If I get a chance tomorrow - and no-one else has given you an answer - I'll see what I can churn out for you and send you some samples.

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report 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] Netezza PREPARE

Copyright © 1996-2020 Information Builders