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     Using between command

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Using between command
 Login/Join
 
Member
posted
I am using 'between' command to display current saturdays date and 13 weeks ago saturday date. It throws an error.

Is there any other way if i can use GE or LE?
I have also tried-
WHERE WE_DATE GE '&SAT12AGO' AND LE '&SAT1AGO'

any suggestions?


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 3 | Registered: November 17, 2014Report This Post
Master
posted Hide Post
You need to use FROM TO keyword instead of BETWEEN. Try below code.
TABLE FILE EMPLOYEE
PRINT
FIRST_NAME
HIRE_DATE
WHERE HIRE_DATE FROM 800601 TO 850601;
END


Hope this helps.
Thanks,
Ram
 
Posts: 542 | Location: Dearborn, MI | Registered: June 03, 2009Report This Post
Master
posted Hide Post
or...
WHERE WE_DATE GE '&SAT12AGO'
WHERE WE_DATE LE '&SAT1AGO'



_____________________
WF: 8.0.0.9 > going 8.2.0.5
 
Posts: 668 | Location: Veghel, The Netherlands | Registered: February 16, 2010Report This Post
Guru
posted Hide Post
Is your date format alpha or numeric? You may need to remove the single quotes.


WebFocus 8.1.5
iSeries/Windows
DB2/SQL/Access
Dev Studio
App Studio
Maintain
ReportCaster
 
Posts: 341 | Location: Pembroke NH/Jericho NY | Registered: June 15, 2011Report This Post
Master
posted Hide Post
If I read the question correctly only two dates are wanted, not the entire range from 13 weeks ago till the most recent Saturday.

I think one way to do it would be to set the most recent Saturday as the first day of the week using SET WEEKFIRST and then use DATEADD to subtract 13 weeks.


WebFOCUS 7.7.05 Windows, Linux, DB2, IBM Lotus Notes, Firebird, Lotus Symphony/OpenOffice. Outputs PDF, Excel 2007 (for OpenOffice integration), WP
 
Posts: 674 | Location: Guelph, Ontario, Canada ... In Focus since 1985 | Registered: September 28, 2010Report 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     Using between command

Copyright © 1996-2020 Information Builders