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.
Is it possible to do sql passthru to a Remote Server? I am not able to figure it out and cant really find any documentation on it. We have remote servers configured but dont know how to pass sql. Can someone please help me or point me in the right direction.
Thanks, prodriguThis message has been edited. Last edited by: <Kathryn Henning>,
Originally posted by Waz: If you need to pass back info, use PCHOLD
Or HOLD it locally (on the remote server) and on the local server create a synonym to it.
Unfortunately the CREATE SYNONYM command isn't documented, but there are some posts in these forums outlining how to use it.
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 :
Below is the what I am trying to do but I am getting an error message. Can you please help?
REMOTE DEST ASTSTSUB
-RUN
-REMOTE BEGIN
SELECT DISTINCT
IMLITM,
IMDSC1
FROM F4101
WHERE SUBSTRING(IMGLPT,1,1) = 'F'
ORDER BY 1;
-REMOTE END
TABLE FILE SQLOUT
PRINT *
END
-EXIT
Error Message:
-INCLUDE sqlpass_remote_server_jde.fex
-* File sqlpass_remote_server_jde.fex
REMOTE DEST ASTSTSUB
-RUN
(FOC32071) REMOTE SET REQUIRES EQUAL SIGN
-REMOTE BEGIN
SELECT DISTINCT
IMLITM,
IMDSC1
FROM F4101
WHERE SUBSTRING(IMGLPT,1,1) = 'F'
ORDER BY 1;
-REMOTE END
(FOC1517) UNRECOGNIZED COMMAND SELECT DISTINCT
(FOC1517) UNRECOGNIZED COMMAND IMLITM,
(FOC1517) UNRECOGNIZED COMMAND IMDSC1
(FOC1517) UNRECOGNIZED COMMAND FROM F4101
(FOC1517) UNRECOGNIZED COMMAND WHERE SUBSTRING(IMGLPT,1,1) = 'F'
(FOC1517) UNRECOGNIZED COMMAND ORDER BY 1;
(FOC1400) SQLCODE IS 1517 (HEX: 000005ED)
: UNRECOGNIZED COMMAND SELECT DISTINCT
L (FOC1405) SQL PREPARE ERROR.
TABLE FILE SQLOUT
PRINT *
END
-EXIT
0 ERROR AT OR NEAR LINE 17 IN PROCEDURE sqlpass_remote_ser
(FOC205) THE DESCRIPTION CANNOT BE FOUND FOR FILE NAMED: SQLOUT
BYPASSING TO END OF COMMAND
Thank you all for your help but I was able to figure it out. Below is my code that allows me to pass sql to a remote server.
REMOTE DEST=ASTSTSUB
-RUN
-REMOTE BEGIN
SQL DB2
SELECT
F4101.IMLITM,
F4101.IMDSC1
FROM F4101
WHERE SUBSTRING(F4101.IMGLPT,1,1) = 'F'
ORDER BY 1;
TABLE FILE SQLOUT
PRINT *
ON TABLE PCHOLD
END
-REMOTE END
-**************************************************************
-*The following 2 lines depict where the file and its
-*Master will be placed in your APP dirs on your HUB server
-*Any Valid APP dir will work
-**************************************************************
APP HOLD MRODRIGTST
-**************************************************************
TABLE FILE SQLOUT
PRINT *
-*Below the XXXXX is the name you want to give the data file on the HUB
-*The YYYYY is the format you would like to save it in
ON TABLE HOLD AS DATATEST FORMAT FOCUS
END
-EXIT