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     [SOLVED] Date/Time in -Set

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Date/Time in -Set
 Login/Join
 
Gold member
posted
I am trying to get Date/Time values in a -SET. I need the beginning of the current month, end on the current month, and the beginnning of the current year. I normally do this with just a YYMD format, but the database I am querying is in HYYMDm format. Please help!

(Whate I normally do)
-SET &BOM=DATECVT(( DATEMOV((DATECVT(&YYMD,'I8YYMD','YYMD')),'BOM')),'YYMD','I8YYMD');
-SET &EOM=DATECVT(( DATEMOV((DATECVT(&YYMD,'I8YYMD','YYMD')),'EOM')),'YYMD','I8YYMD');
-SET &BOY=DATECVT(( DATEMOV((DATECVT(&YYMD,'I8YYMD','YYMD')),'BOY')),'YYMD','I8YYMD');

This message has been edited. Last edited by: Kerry,


WebFOCUS 768
OS/400
HTML, also quite a few active reports and excel.
 
Posts: 59 | Registered: June 18, 2009Report This Post
Gold member
posted Hide Post
Also, I've tried concatenating a time on the end of the date value, but receive an error.

SET TRACEOFF=ALL
SET TRACEUSER=CLIENT
SET TRACEON=STMTRACE//CLIENT
-SET &BOM=DATECVT(( DATEMOV((DATECVT(20101229,'I8YYMD','YYMD')),'BOM')),'YYMD','I8YYMD');
-SET &EOM=DATECVT(( DATEMOV((DATECVT(20101229,'I8YYMD','YYMD')),'EOM')),'YYMD','I8YYMD');
-SET &BOY=DATECVT(( DATEMOV((DATECVT(20101229,'I8YYMD','YYMD')),'BOY')),'YYMD','I8YYMD');
-SET &BOY2=EDIT(20100101, '99999999') | ' 00:00:00.000000';
TABLE FILE ORDERS
PRINT
ID
ORDERED_DATE
REVENUE_CODE_ID
STATUS
WHERE ORDERED_DATE GE 20100101 00:00:00.000000;
END
0 ERROR AT OR NEAR LINE 17 IN PROCEDURE mav_brokerage_batr
(FOC258) FIELDNAME OR COMPUTATIONAL ELEMENT NOT RECOGNIZED: 00:00:00.000000
BYPASSING TO END OF COMMAND
(FOC009) INCOMPLETE REQUEST STATEMENT


WebFOCUS 768
OS/400
HTML, also quite a few active reports and excel.
 
Posts: 59 | Registered: June 18, 2009Report This Post
Virtuoso
posted Hide Post
Try this in your WHERE clause:

WHERE ORDERED_DATE GE DT(&BOY 00:00:00);


WebFOCUS 7.7.05
 
Posts: 1213 | Location: Seattle, Washington - USA | Registered: October 22, 2007Report This Post
Gold member
posted Hide Post
Thanks!


WebFOCUS 768
OS/400
HTML, also quite a few active reports and excel.
 
Posts: 59 | Registered: June 18, 2009Report 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     [SOLVED] Date/Time in -Set

Copyright © 1996-2020 Information Builders