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.
ENGINE SQLORA SET SERVER &OracleConnect ENGINE SQLORA SELECT * INTO #TMPMUREXGLACCT FROM OPENQUERY(ORALINKMUREXIUAT,'SELECT SUBSTR(LTRIM(M_LABEL_GL),1,9) AS AccountCode,M_DESC AS GLACCOUNTDESC FROM MUREX.TRN_ACA1_DBF') ; -*
ENGINE SQLORA SET SERVER &OracleConnect ENGINE SQLORA select * INTO #TMPMUREXGLCOMPANY FROM OPENQUERY(ORALINKMUREXIUAT,'SELECT DISTINCT LEGAL_ENTITY_NBR AS CompanyCode,LEGAL_ENTITY_NAME FROM MUREXODS.V_PORTFOLIO_ENTITY WHERE LEGAL_ENTITY_NAME IS NOT LIKE ''%Embedded%''') ; -* ENGINE SQLORA SET SERVER &OracleConnect ENGINE SQLORA SELECT (ltrim(MONTH(gl.EntryDate) + '/' + ltrim(DAY(gl.EntryDate)) + '/' + ltrim(YEAR(gl.EntryDate))) AS Postingdate, gl.company AS CompanyCode, tmp2.legal_entity_name AS GLEntity, gl.Segment AS BusinessArea, gl.GLAcctNo AS AccountCode, tmp1.GLACCOUNTDESC AS AccountDescription, gl.DBInd, CASE gl.DBInd WHEN 'D' THEN gl.Amount END AS D_Amount, CASE gl.DBInd WHEN 'C' THEN gl.Amount END AS C_Amount FROM dbo.wrkGLDerivExtract gl LEFT JOIN #TMPMUREXGLACCT tmp1 ON gl.GLAcctNo = tmp1.AccountCode Left JOIN #TMPMUREXGLCOMPANY tmp2 ON gl.company = tmp2.CompanyCode ; -*
-******************************************************************** -* SAVE SP CURSOR TO A HOLD FILE TO WORK WITH IN FEX -******************************************************************** TABLE FILE SQLOUT PRINT * BY CompanyCode BY GLEntity ON TABLE HOLD AS GLDailyEntries_HOLD END -RUN
-******************************************************************** -* DEFINE VARIABLES TO WORK WITH IN FEX -******************************************************************** DEFINE FILE GLDailyEntries_HOLD BLANK_LINE/A1 = ' '; F_D_Amount/D14.2CS = D_Amount; F_C_Amount/D14.2CS = C_Amount; END
-******************************************************************** -* BEGIN FORMATTING REPort OUTPUTDEFINE VARIABLES TO WORK WITH IN FEX -******************************************************************** TABLE FILE GLDAILYENTRIES_HOLD PRINT
BusinessArea AccountCode AccountDescription F_D_Amount AS 'Debit Amount' F_C_Amount AS 'Credit Amount' BY CompanyCode NOPRINT BY GLEntity NOPRINT BY AccountCode NOPRINT BY BusinessArea NOPRINT
ON CompanyCode NOPRINT PAGE-BREAK ON AccountCode NOPRINT PAGE-BREAK SUBTOTAL ON GLEntity NOPRINT PAGE-BREAK SUBTOTAL
You're creating a temporary Oracle table, correct? I don't think that all of this can be passed as SQL passthru in one FOCUS request. You may be able to do this as a remote procedure, but I'm not sure of the sayntax. Look for "remote procedure" in the forum and the IBI documentation.
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
i first wrote it as seperate prcedure in SQl and called it into the webfocus at that time also i had same error,
error attached: (FOC1400) SQLCODE IS 7300 (HEX: 00001C84) XOPEN: 01000 : Microsoft OLE DB Provider for SQL Server: [01000] OLE DB error trace [OL : E/DB Provider 'MSDAORA' ITransactionJoin::JoinTransaction returned 0x800 : 4d01b]. [42000] The operation could not be performed because the OLE DB : provider 'MSDAORA' was unable to begin a distributed transaction. (FOC1405) SQL PREPARE ERROR.
the WebFOCUS errors are occurring because of the bigger OLE DB error - you have to solve that one first. Perhaps you're trying to run a remote procedure on a server that webfocus cannot access, or on some kind of multi-tier environment, or it could be a simple config problem, but I don't think it's WebFOCUS.
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