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     retrieve records on current day

Read-Only Read-Only Topic
Go
Search
Notify
Tools
retrieve records on current day
 Login/Join
 
<catelinw>
posted
how to limit date only on current day?
Should I do this under the Developer studion ---> where/if tab, using function today(),but I tried it did not work.
Thanks.
 
Report This Post
Gold member
posted Hide Post
What is the format of your date field?
Is it HYYMDS?
if it is, the TODAY function doesn't work and its HGETC(length, outfield) to get the current date.

ex. MODDATE/HYYMDS = HGETC(8, 'HYYMDS');

you can try that to get the current date for comparision purposes.

Leo
 
Posts: 96 | Location: Winnipeg, Manitoba, Canada | Registered: January 22, 2004Report This Post
<catelinw>
posted
Thank very much.

If I want to limit records on field 'Created_date', how can I make it work in developer studio? what exactly I should type there?
 
Report This Post
Gold member
posted Hide Post
Yeah I remember running into the comparison problem and ended up with this solution:

DEFINE FILE DBNAME
CRDATE/YYMD = HDATE(MODDATE, 'YYMD');
END

TABLE FILE DBNAME
PRINT ....
IF CRDATE EQ &YYMD
END

Hope that solves your problem!

Leo
 
Posts: 96 | Location: Winnipeg, Manitoba, Canada | Registered: January 22, 2004Report This Post
<catelinw>
posted
thanks, but I am new to developer studio , how can I do it in (GUI )report painter ?
 
Report This Post
Gold member
posted Hide Post
Eeker GUI... hmm.. I actually havn't used report painter too much but it involves first creating a DEFINE of the table you are using. In there you create the new field CRDATE format "YYMD" with text: "HDATE(MODDATE, 'YYMD')"

after that, you can go in Report Painter, amd click on the If/Where button and creating a new If expression "CRDATE EQ &YYMD".

Hope that helps!

Leo
 
Posts: 96 | Location: Winnipeg, Manitoba, Canada | Registered: January 22, 2004Report 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     retrieve records on current day

Copyright © 1996-2020 Information Builders