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.



Read-Only Read-Only Topic
Go
Search
Notify
Tools
subtract one day
 Login/Join
 
Platinum Member
posted
I have a report that I would like to run for the previous day. I've tried to use the following function but I'm being prompted for an &RDATE value.

-SET &RDATE = HADD(&DATE, 'D', -1, 8, &RDATE);


Server Environment: Win2K3 Server WebFOCUS 7.13 Apache Tomcat standalone application server
 
Posts: 188 | Registered: April 14, 2005Report This Post
Guru
posted Hide Post
Give this a try:

-SET &RDATE = AYMD(&YYMD,-1,'I8');
 
Posts: 406 | Location: Canada | Registered: May 31, 2004Report This Post
Platinum Member
posted Hide Post
HADD only works with date-time values and last parameter, also, must be a date-time format.

Regards,
Mikel


WebFOCUS 8.1.05, 8.2.01
 
Posts: 173 | Location: Madrid, Spain | Registered: May 09, 2003Report This Post
Expert
posted Hide Post
Bethany, i'll just add a note that in dialogue manager, when you use functions, the last argument must be the format rather than the fieldname. When you use functions in regular focus (not DM), the last argument can be either a fieldname or the format. That's why you're getting prompted, as reFocusing says.
And as Mikel says (nice to see Mikel on the boards again!), the HADD function would only work on dates with a date-time format, different from just a date format, and we're not sure what format your &RDATE is, actually.




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
Guru
posted Hide Post
See SET TESTDATE
 
Posts: 252 | Location: USA | Registered: April 15, 2003Report This Post
Platinum Member
posted Hide Post
Thank you all for your help. Report is now working as planned.


Server Environment: Win2K3 Server WebFOCUS 7.13 Apache Tomcat standalone application server
 
Posts: 188 | Registered: April 14, 2005Report This Post
Gold member
posted Hide Post
Though she already has her answer, I'm pretty sure (and someone can correct me if I'm wrong) that the final value of a dialogue manager function is usually not able to be an amper variable. I had to do a tremendous amount of coding to get around this one time.
 
Posts: 90 | Registered: April 15, 2004Report This Post
Platinum Member
posted Hide Post
Stan,

I have included (the relevant part of) a snippit of code that works fine for me. The sample shows the function GETTOK used in DM. I suspect that you might have had a quoting issue.

-SET &FIELD = &LASTNAME;
-SET &FIELD_LEN = &FIELD.LENGTH;
-SET &FIELD_FMT = 'A' | &FIELD_LEN;
-SET &CTR = 1;

-REPEAT :QUOTE0 WHILE &TOKEN NE ' ';
-SET &TOKEN = GETTOK(&FIELD, &FIELD_LEN, &CTR, '''', &FIELD_LEN, '&FIELD_FMT');
....

Regards,
Sean


------------------------------------------------------------------------
PROD: WebFOCUS 7.6.2 on Unix AIX/Tomcat/Servlet Mode
TEST: WebFOCUS 7.6.2 on Unix AIX/Tomcat/Servlet Mode
 
Posts: 210 | Location: Ottawa | Registered: November 03, 2005Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic


Copyright © 1996-2020 Information Builders