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'm trying to update a database with SQL Passthrough. I'm only having a problem with the YYMD field. Fow some reason I can't get it to go. I've tried a few variations of the following:
SQL DB2 SET ISOLATION NC
-SET &DT11=&DATEYYMD;
ENGINE DB2 SET DEFAULT_CONNECTION Y
SQL DB2
INSERT INTO HSIUSRFLE/SQLTEST (FOCLIST, DT1, BBUYR, SUPPID, SUPPCON, SUPPCOM) VALUES ('1','&DT11','91','SEPTDT','TEST','TEST');
END
-RUN
Log:
SQL DB2
INSERT INTO HSIUSRFLE/SQLTEST (FOCLIST, DT1, BBUYR, SUPPID, SUPPCON, SUPPCOM) VALUES ('1','2013/06/03','91','SEPTDT','TEST','TEST');
END
-RUN
(FOC1400) SQLCODE IS -180 (HEX: FFFFFF4C)
: [22007] Syntax of date, time, or timestamp value not valid.
(FOC1414) EXECUTE IMMEDIATE ERROR.
Thank you!This message has been edited. Last edited by: John C.,
You will need to know the format of the date field in the database and convert the focus data accordingly.
Usage = YYMD, Actual = Date
found this if it helps:
Using the DB2 Web Query Adapter for Microsoft SQL Server Reference: SQL Limitations on Optimization of DEFINE Expressions Since the Web Query reporting language is more extensive than native SQL, the data adapter cannot pass certain DEFINE expressions to the RDBMS for processing. The data adapter does not offload DEFINE-based aggregation and record selection if the DEFINE includes:
❏ User-written subroutines. ❏ Self-referential expressions such as: X=X+1; ❏ EDIT functions for numeric-to-alpha or alpha-to-numeric field conversions. ❏ DECODE functions for field value conversions. ❏ Relational operators INCLUDES and EXCLUDES. ❏ Web Query subroutines ABS, INT, MAX, MIN, LOG, and SQRT. Note: Do not confuse the Web Query user-written subroutines MAX and MIN with the MAX. and MIN. prefix operators. DEFINE fields cannot include prefix operators. ❏ Expressions involving fields with ACTUAL=DATE ACTUAL=DATE, except for the subtraction of one DATE field from another and all logical expressions on DATE fields. ❏ Date-time manipulation handled by the Web Query date-time functions is not converted to SQL. In addition, IF-THEN-ELSE optimization does not support the following features: ❏ Any type of DECODE expression. ❏ STATIC SQL. ❏ IF/WHERE DDNAME. ❏ Partial date selection.This message has been edited. Last edited by: J,
WebFOCUS 7.7.03/8.0.08 Dev Studio 7.7.03/8.0.08 App Studio 8.0.08 Windows 7 ALL Outputs
Posts: 402 | Location: Upland, IN | Registered: June 08, 2012