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     Calendar control parameter

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Calendar control parameter
 Login/Join
 
Member
posted
Issue :
Using a calendar control select a date in mm/dd/yyyy format. Default the date to current date. Pass the parameter in to a DEFINE subtracting 3 business days. Select all master file records whose AS_OF _DATE is within the date range (original input parameter date thru parameter date less 3 business days.

Report code:

-SET ECHO=ON;
-SET BUSDAYS = _MTWTF_;
-SET &INDATE = &INDATE;
-*
-RUN

DEFINE FILE FUND_DYNAMIC
-*Set up master date for compare date time stamp
DATE/HMDYY=AS_OF_DATE;
DATE_TEST1/HYYMD = AS_OF_DATE;
DATE_TEST/YYMD = HDATE(AS_OF_DATE, 'YYMD');
-*redefine date parameter to yymd form at for subtraction and comaprison
INDATE_REDEF/MDYY = &INDATE;
INDATE_CVT/YYMD = DATECVT(INDATE_REDEF,'MDYY','YYMD');
INDATE_LESS3/YYMD = DATEADD(INDATE_CVT,'BD',-3);
END

TABLE FILE FUND_DYNAMIC

PRINT
INDATE_REDEF AND INDATE_CVT AND INDATE_LESS3 AND AS_OF_DATE AND DATE_TEST AND DATE_TEST1 AND DATE
IF READLIMIT EQ 1
END


Problems:
In the value property of the calendar control what returns the current date
When I set the value property to 07282008 as the calendar control does not show the date as 07/28/2008 but as 07282008. The defines produce the desired result:



PAGE 1

INDATE_REDEF INDATE_CVT INDATE_LESS3 AS_OF_DATE DATE_TEST DATE_TEST1 DATE
07/28/2008 2008/07/28 2008/07/23 2004/05/06 00:00:00.000 2004/05/06 2004/05/06 05/06/2004


When I set the value property to 07/28/2008 as the calendar control does show the date as 07/28/2008 but the defines do not produce the desired result: The parameter is accepted.
DEFINE FILE FUND_DYNAMIC
DATE/HMDYY=AS_OF_DATE;
DATE_TEST1/HYYMD = AS_OF_DATE;
DATE_TEST/YYMD = HDATE(AS_OF_DATE, 'YYMD');
INDATE_REDEF/MDYY = 07/28/2008;
INDATE_CVT/YYMD = DATECVT(INDATE_REDEF,'MDYY','YYMD');
INDATE_LESS3/YYMD = DATEADD(INDATE_CVT,'BD',-3);
END
TABLE FILE FUND_DYNAMIC
PRINT
INDATE_REDEF AND INDATE_CVT AND INDATE_LESS3 AND AS_OF_DATE AND DATE_TEST AND DATE_TEST1 AND DATE
IF READLIMI EQ 1
END
0 ERROR AT OR NEAR LINE 27 IN PROCEDURE junk FOCEXEC *
(FOC003) THE FIELDNAME IS NOT RECOGNIZED: READLIMI
BYPASSING TO END OF COMMAND
(FOC009) INCOMPLETE REQUEST STATEMENT


PAGE 1

INDATE_REDEF INDATE_CVT INDATE_LESS3 AS_OF_DATE DATE_TEST DATE_TEST1 DATE
1900/12/26 2004/05/06 00:00:00.000 2004/05/06 2004/05/06 05/06/2004
 
Posts: 1 | Registered: July 28, 2008Report This Post
Virtuoso
posted Hide Post
READLIMI???

I would try READLIMIT....
That might help.




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
quote:
INDATE_REDEF/MDYY = 07/28/2008;


You will need steps to edit out the slashes.


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     Calendar control parameter

Copyright © 1996-2020 Information Builders