Focal Point
[Solved]Question for save SQL to hold file

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

October 21, 2011, 03:04 PM
EdHou
[Solved]Question for save SQL to hold file
I hae following codes:

SQL

SELECT MYFUNCTION(URL)
FROM USER_DETAIL;

TABLE FILE SQLOUT
PRINT *
ON TABLE HOLD AS HOLD1
END

If without "ON TABLE HOLD AS HOLD1", it works fine. However, with ON TABLE HOLD AS HOLD1, I got (FOC1571) SET SERVER xxxx COMMAND FOR ORACLE INTERFACE OUT OF SEQUENCE. MYFUNCTION is a function created on Oracle.

Thank you to let me know what I did wrong.

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


WebFOCUS 8.0.09
WebFOCUS 7.7.05
DBMS: Oracle 11g
all output (Excel, HTML, PDF)
October 21, 2011, 03:06 PM
njsden
quote:
with ON TABLE HOLD AS HOLD1, I got (FOC1571) SET SERVER xxxx COMMAND


That's not the right syntax. Try:

SQL SQLORA

SELECT MYFUNCTION(URL) 
FROM USER_DETAIL;

TABLE ON TABLE HOLD AS HOLD1
END

TABLE FILE HOLD1
PRINT *
END




Prod/Dev: WF Server 8008/Win 2008 - WF Client 8008/Win 2008 - Dev. Studio: 8008/Windows 7 - DBMS: Oracle 11g Rel 2
Test: Dev. Studio 8008 /Windows 7 (Local) Output:HTML, EXL2K.
October 21, 2011, 03:14 PM
EdHou
Thank you so much, it's working.


WebFOCUS 8.0.09
WebFOCUS 7.7.05
DBMS: Oracle 11g
all output (Excel, HTML, PDF)