Focal Point
[CLOSED] Netezza PREPARE

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/8997078076

May 27, 2014, 06:41 AM
Håkan
[CLOSED] Netezza PREPARE
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)
May 27, 2014, 07:35 AM
Tony A
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 
May 27, 2014, 09:02 AM
Håkan
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)
May 27, 2014, 09:47 AM
David Briars
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
May 27, 2014, 10:09 AM
Håkan
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)
May 27, 2014, 12:21 PM
Tony A
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