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     Report Assitant Help

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Report Assitant Help
 Login/Join
 
Guru
posted
Hello all. I am new at this and I would like to try and figure out how to run this for current day - 1. I have begindate and enddate which forces the user to input dates, but I am just looking at grab everything for the prev business date. I am using Report Assistant, is there a Parameter I can use in the Selection Criteria to do this? I know there is tons of information about Date/Time, but I am having a hard time finding anything with Report Assistant.

Thanks


-* HTML Tool
-* Created by Report Assistant
-* FF Line do not change this line! Field Name
-* FF Line do not change this line! Alias
-* FF Line do not change this line! Format
-* FF Line do not change this line! Segment
-* FF Line do not change this line! displayTree=0
-* J001 J001
JOIN
TRACKING.TRACKING.PROBLEM
IN TRACKING
TO MULTIPLE PROBLEMDEFS.PROBLEMDEFS.PROBLEMDEF
IN PROBLEMDEFS TAG J001
AS J001
END
TABLE FILE TRACKING
SUM MAX.TRACKING.TRACKING.DATEENTERED AS 'DATEENTERED'
BY TRACKING.TRACKING.SERVER
BY TRACKING.TRACKING.LOCATIONID
BY TRACKING.TRACKING.BUSINESSDATE
BY TRACKING.TRACKING.STORENUMBER AS 'SITE_NUM'
BY TRACKING.TRACKING.PROBLEM
BY J001.PROBLEMDEFS.PROBLEMDESC
WHERE (TRACKING.TRACKING.PROBLEM EQ '32'
OR '64'
OR '128'
OR '256')
AND (TRACKING.TRACKING.BUSINESSDATE EQ DT(&begindate)
OR DT(&enddate));
ON TABLE SET STYLE *
TYPE=REPORT,
GRID=OFF,
$
ENDSTYLE
ON TABLE PCHOLD FORMAT EXL2K
ON TABLE NOTOTAL
END
-* End Report Assistant


WebFOCUS 8.1.05
 
Posts: 496 | Registered: January 04, 2008Report This Post
Gold member
posted Hide Post
Matt,

Whenever I have wanted to do things like that I would use the &YYMD command to pull in todays date. something like this:

DEFINE FILE CAR
CURRDATE/YYMD=&YYMD;
PREVDATE/YYMD=CURRDATE-1;
END


Eric Woerle
WF 7.6.7 Reportting Server
ETL 7.6.10
Dev Studio 7.6.7
 
Posts: 95 | Registered: July 31, 2007Report This Post
Master
posted Hide Post
If you want a quick win in RA this is messy and you may be better off getting the user to enter the last business date.

AND (TRACKING.TRACKING.BUSINESSDATE EQ DT(&EnterLastBusinessDate)

Otherwise

You will have to define a field

TODAY/MDYY WITH TRACKING.TRACKING.BUSINESSDATE = '&DATEMDYY' ;
LSTBUSDAY/MDYY = DATEMOV(TODAY,'BD-') ;

and include

WHERE TRACKING.TRACKING.BUSINESSDATE EQ LSTBUSDAY in the where clauses

This will work but run like a pig since wf will be carrying out the date screening not the rdbms


Outside RA you can do this more neatly but if you want to stick with RA get the user to enter the date!



Server: WF 7.6.2 ( BID/Rcaster) Platform: W2003Server/IIS6/Tomcat/SQL Server repository Adapters: SQL Server 2000/Oracle 9.2
Desktop: Dev Studio 765/XP/Office 2003 Applications: IFS/Jobscope/Maximo
 
Posts: 888 | Location: Airstrip One | Registered: October 06, 2006Report This Post
Guru
posted Hide Post
Thanks for the help. After a few attempts, I decided just to leave it with the begin and end dates. This will probably work better for us.


WebFOCUS 8.1.05
 
Posts: 496 | Registered: January 04, 2008Report This Post
Platinum Member
posted Hide Post
-* subtract 1 from current date also get current month and year from system date
-SET &TODAY = &YYMD - 1;
-SET &CYR = EDIT(&TODAY,'9999$$$$');
-SET &CMO = EDIT(&TODAY,'$$$$99$$');
-SET &CDA = EDIT(&TODAY,'$$$$$$99');
-SET &YESTERDAY = &CYR ||'/'||&CMO||'/'||&CDA;
-TYPE &TODAY
-TYPE &YESTERDAY

WHERE TRACKING.TRACKING.BUSINESSDATE EQ '&YESTERDAY';


WF 8 version 8.2.04. Windows.
In focus since 1990.
 
Posts: 189 | Location: pgh pa | Registered: October 06, 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     Report Assitant Help

Copyright © 1996-2020 Information Builders