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.
I want to update one column in the Oralce database
SQL SQLORA SET SERVER MYSERVER UPDATE PERSON SET LAST_UPDATED_DATE = SYSDATE WHERE EMPLOYEE_ID='000001' END
However, i got the following error:
(FOC1517) UNRECOGNIZED COMMAND UPDATE PERSON 0 ERROR AT OR NEAR LINE 4 IN PROCEDURE ADHOCRQ FOCEXEC * (FOC324) THE PARAMETER TO BE SET IS NOT RECOGNIZED: LAST_UPDATED (FOC1517) UNRECOGNIZED COMMAND WHERE EMPLOYEE_ID='N067569'
Thanks in advance for your helpThis message has been edited. Last edited by: Kerry,
==================== Production: WebFOCUS 7.1.1 on Window 2003 WebFOCUS 7.1.1 Client on HP-UX on WebLOGIC 8.1 sp4 Dev: WebFOCUS 7.6.4 on Window 2003 WebFOCUS 7.1.1 Client on HP-UX on WebLogic 8.1 sp4
Maria, here is an example, there are others in the forum as well.
-*******************************************************************************
-* Set the trace file
-SET &TEMPPATH = TEMPPATH(80,'A80');
-SET &TRACEFL = &TEMPPATH || ('cmd_op.trc');
-*******************************************************************************
-* Set Commands To Set Tracing
SET TRACEOFF = ALL
SET TRACEON=R1H
SET TRACEUSER = ON
SET TRACEUSER = &TRACEFL
-RUN
SQL SQLORA
SELECT *
FROM MISSING_TABLE;
END
-RUN
-RUN
-* The previous two -RUN's must be there for this to work.
SET TRACEOFF = ALL
SET TRACEUSER = OFF
-RUN
-*******************************************************************************
-* Allocate The Trace File
FILEDEF TRACEFIL DISK &TRACEFL
-RUN
-*******************************************************************************
-* Write out a master to read the TRACEFIL list
EX -LINES 4 EDAPUT MASTER,TRACEFIL,CV,FILE
FILENAME=TRACEFIL, SUFFIX=FIX,$
SEGNAME=TRACEFIL, $
FIELD=LINE ,ALIAS= ,A500 ,A500 ,$
-RUN
-*******************************************************************************
-* Process the trace file to get the results of the command.
DEFINE FILE TRACEFIL
Item3/A20 = GETTOK(LINE,500,3,' ',20,'A20') ;
MSG_Item/A493 = SUBSTR(500,GETTOK(LINE,500,2,'"',500,'A500'),8,500,493,'A493') ;
CMD_Flag/A1 = IF EDIT(MSG_Item,'9') EQ ':' THEN 'Y' ELSE 'N' ;
END
TABLE FILE TRACEFIL
PRINT
MSG_Item
WHERE Item3 EQ 'NGtrEvnt:'
-* ON TABLE HOLD AS TMP_CHCK
END
-RUN
Maria - Here is piece of SQL-RC check code that we use. The -803 is a duplicate insert failure. It is an acceptable condition in our situation, you may take it out if you do not want it.
The ERROR_MSG.FEX is a standard module we use inhouse for error trap and display.
Sandeep Mamidenna
------------------------------------------------------------------------------------------------- Blue Cross & Blue Shield of MS WF.76-10 on (WS2003 + WebSphere) / EDA on z/OS + DB2 + MS-SQL MRE, BID, Dev. Studio, Self-Service apps & a dash of fun !!
Posts: 218 | Location: Jackson, MS | Registered: October 31, 2006
(FOC1364) ROWS AFFECTED BY PASSTHRU COMMAND : 1/UPDATE 0 ERROR AT OR NEAR LINE 15 IN PROCEDURE ADHOCRQ FOCEXEC * (FOC303) CONTROL LINE NOT RECOGNIZED IN FOCEXEC: -print &MSGX
My fex is:
SET SQLENGINE=SQLMSS
SQL SQLORA SET SERVER MYSERVER SQL SQLORA UPDATE table SET WHERE END
As Dan says, it should be -TYPE to just print back the return code on screen.
Confused a bit with your code however. You start with SQLENGINE=SQLMSS, but have an Oracle table referenced with SQLORA ???
Are these not mutually exclusive?
------------------------------------------------------------------------------------------------- Blue Cross & Blue Shield of MS WF.76-10 on (WS2003 + WebSphere) / EDA on z/OS + DB2 + MS-SQL MRE, BID, Dev. Studio, Self-Service apps & a dash of fun !!
Posts: 218 | Location: Jackson, MS | Registered: October 31, 2006