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 then tried the following which I got from the documentation that was linked in another of the posts.�..
TABLE FILE TCONTRCT PRINT CONTRACT_ID TERMINATION_DT WHERE RECORDLIMIT EQ 10 WHERE TERMINATION_DT NE DT(2020/01/01 00:00:00) ; END
I get the following oracle error (FOC1400) SQLCODE IS 1756 (HEX: 000006DC) : [S1000] [Oracle][ODBC][Ora]ORA-01756: quoted string not properly termina : ted L (FOC1406) SQL OPEN CURSOR ERROR. : TCONTRCT
Can anyone please help with this�� I'd really appreciate the help ?
Posts: 132 | Location: Kansas | Registered: November 12, 2003
DEFINE FILE CAR DATE1/HYYMDS = DT(19900101000000); COUNTER/I2 WITH CAR = COUNTER + 1; DATE2/HYYMDS = HADD(DATE1,'DAY',COUNTER, 8, DATE2); END TABLE FILE CAR PRINT DATE1 DATE2 BY MODEL WHERE DATE2 EQ DT(1990/01/10 00:00:00); END
Pietro is absolutely correct manually changing the master as he describes will fix the problem. This issue affects most of the adapters where dates are concerned and I've used the master edit method on Oracle, MSSQL, SAP R/3 and SAP BW. Worked everytime.
I used your code example and it works great..... As for the master that change dropped the time and I still need the time..... My user is very happy now.....
Posts: 132 | Location: Kansas | Registered: November 12, 2003
The SQL SQLORA SET DATETIME OFF command is used to create Masters where the Date-Time columns are generated as Date columns, which, in your case, is not what you require, since your user needs the time in his reports.
You may have figured this out already, but you can use a Dialog Manager variable in the WHERE statement:
-SET &ECHO=ALL;
-SET &DATETEST = EDIT(&YYMD,'9999/99/99');
DEFINE FILE CAR DATE1/HYYMDS = DT(20050307000000); COUNTER/I2 WITH CAR = COUNTER + 1; DATE2/HYYMDS = HADD(DATE1,'DAY',COUNTER, 8, DATE2); END TABLE FILE CAR PRINT DATE1 DATE2 BY MODEL WHERE DATE2 EQ DT(&DATETEST 00:00:00); END
I was so FOCUS'd (hehe) that I hadn't really looked at anything outside my immediate problem and DM doesn't come in to play for that ... but I will file that away for future reference..... THANKS
Posts: 132 | Location: Kansas | Registered: November 12, 2003