Focal Point Banner


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.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Date Function in Where Criteria

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Date Function in Where Criteria
 Login/Join
 
Gold member
posted
I am getting an error on this code:

DEFINE FILE PRICING
DATEX/YMD = DATEADD('080721', 'D', -30);
END
TABLE FILE PRICING
PRINT
DATE_DUE AS 'Due Date or ASAP'
RESPONSIBLE_PERSON AS 'Sales Exec'
STATUS
CATEGORY
HEADING
""
FOOTING
""
WHERE ( CATEGORY LIKE 'Propos%' ) AND ( STATUS LIKE 'Open%' ) AND (SENT_TO_DATE GE DATEX));

Error:

0 ERROR AT OR NEAR LINE 25 IN PROCEDURE ADHOCRQ FOCEXEC *
(FOC280) COMPARISON BETWEEN COMPUTATIONAL AND ALPHA VALUES IS NOT ALLOWED
(FOC009) INCOMPLETE REQUEST STATEMENT
BYPASSING TO END OF COMMAND

Am I missing something?


Winnie

Webfocus 7.7.3
 
Posts: 83 | Registered: July 16, 2008Report This Post
Guru
posted Hide Post
You might be missing something - do a search on DT(.

Make sure that the format of your argument is consisten with the format of SENT_TO_DATE


jimster06
DevStu WF 7.6.11
W7
HTML, PDF, EXL2K
 
Posts: 252 | Location: USA | Registered: April 15, 2003Report This Post
Expert
posted Hide Post
Also, Winnie, some data bases prefer date checks to be done with literal dates as opposed to defined fields. Doing a trace will show that the WHERE isn't passed to the RDBMS.

Instead you can do this:

-SET &DATEX=AYMD('080721'', -30,'I6YMD');
TABLE FILE PRICING
...
WHERE SENT_TO_DATE GE &DATEX
END


And Jim is correct. Since we don't know what the format of SENT_TO_DATE is, it is difficult to know exactly what format the WHERE clause should take.

Also, and I thought you had fixed this, please update your profile signature with your product suite, releases, and platforms.

Thanks.


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
 
Posts: 2723 | Location: Ann Arbor, MI | Registered: April 05, 2006Report This Post
Virtuoso
posted Hide Post
quote:
WHERE ( CATEGORY LIKE 'Propos%' ) AND ( STATUS LIKE 'Open%' ) AND (SENT_TO_DATE GE DATEX));


Also, ensure CATEGORY and STATUS are ALPHANUMERIC, is SET_TO_DATE a date?


Leah
 
Posts: 1317 | Location: Council Bluffs, IA | Registered: May 24, 2004Report This Post
Virtuoso
posted Hide Post
I would suggest to split the where statement into 3 separate lines. Then you might better find which causes the problem.




Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7

 
Posts: 2387 | Location: Amsterdam, the Netherlands | Registered: December 03, 2006Report This Post
Master
posted Hide Post
I would suggest that you take the quotes off the date, in a DATEADD or AYMD it needs to be numeric.


Pat
WF 7.6.8, AIX, AS400, NT
AS400 FOCUS, AIX FOCUS,
Oracle, DB2, JDE, Lotus Notes
 
Posts: 755 | Location: TX | Registered: September 25, 2007Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Date Function in Where Criteria

Copyright © 1996-2020 Information Builders