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
Problem with date
 Login/Join
 
Member
posted
I need some help...I'm trying to run this code:

WHERE ( FFBMAST_DEPR_START_DATE GE DT(2005-07-01 10:54:23) );

and I'm getting this error:
0 ERROR AT OR NEAR LINE 11 IN PROCEDURE ADHOCRQ FOCEXEC *
(FOC177) INVALID DATE CONSTANT: )
(FOC009) INCOMPLETE REQUEST STATEMENT
BYPASSING TO END OF COMMAND

Any ideas?
Note...I'm pretty new to WebFocus. =)
Thanks!
 
Posts: 9 | Registered: March 10, 2006Report This Post
Expert
posted Hide Post
Two thoughts:

1) Use / instead of -

2) Add hundredth's or thousandth's (most likely thousandth's) of seconds to the date-time (depending on the DBMS and how the field is defined):

WHERE ( FFBMAST_DEPR_START_DATE GE DT(2005-07-01 10:54:23.000) );

or

WHERE ( FFBMAST_DEPR_START_DATE GE DT(2005-07-01 10:54:23.00) );


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Member
posted Hide Post
Thanks for giving me some suggestions Francis...unfortuantely, neither one worked. I didn't even get a different error message. I'll keep plugging away. Let me know if you have any other ideas.

Janet
 
Posts: 9 | Registered: March 10, 2006Report This Post
Expert
posted Hide Post
OK. The first thing to determine is the format of FFBMAST_DEPR_START_DATE? Is it really a Date-Time field. What does the Master file state?


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Member
posted Hide Post
Yes, it said it was Date/Time
2006/03/30 (YYMD)
 
Posts: 9 | Registered: March 10, 2006Report This Post
Master
posted Hide Post
Did you tried this way?

WHERE (FFBMAST_DEPR_START_DATE GE DT('2005-07-01 10:54:23') );


WFConsultant

WF 8105M on Win7/Tomcat
 
Posts: 780 | Location: Florida | Registered: January 09, 2005Report This Post
Member
posted Hide Post
nope...I got a different error that time...

0 ERROR AT OR NEAR LINE 14 IN PROCEDURE ADHOCRQ FOCEXEC *
(FOC177) INVALID DATE CONSTANT: '2005-07-01 10:54:23'
(FOC009) INCOMPLETE REQUEST STATEMENT
BYPASSING TO END OF COMMAND
 
Posts: 9 | Registered: March 10, 2006Report This Post
Expert
posted Hide Post
YYMD isn't a Date-Time field, it's a Date field.

A Date-Time field looks somehting like this:

FIELD=DATEOFUPDATE ,DateOfUpdate, HYYMDs ,HYYMDs ,MISSING=ON ,$


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Member
posted Hide Post
quote:
FFBMAST_DEPR_START_DATE

I opened the .mas wrong...if I right click...and edit...this is what it said:

FIELD=FFBMAST_DEPR_START_DATE ,FFBMAST_DEPR_START_DATE,
YYMD ,DATE ,MISSING=ON ,
 
Posts: 9 | Registered: March 10, 2006Report This Post
Expert
posted Hide Post
This is a "Smart Date".

Try this:

WHERE (FFBMAST_DEPR_START_DATE GE '2005-07-01');

Take a look at the database table itself. If the database table column is defined as a date-time field, then most likely the Master file (.mas) was deliberately defined as YYMD - to make it easier to write reports with. Take a look at another .fex to see how the date field is accessed.


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Member
posted Hide Post
I didn't get the error!! I think I'm all set..

Thank you for your help!
 
Posts: 9 | Registered: March 10, 2006Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic


Copyright © 1996-2020 Information Builders