Feedback
Did this article resolve your question/issue?

   

Article

DBTool is showing errors with a date field when year exceeds 9999.

« Go Back

Information

 
TitleDBTool is showing errors with a date field when year exceeds 9999.
URL Namedbtool-is-showing-errors-with-a-date-field-when-year-exceeds-9999
Article Number000158340
EnvironmentProduct: Progress
Product: OpenEdge
Version: All supported versions
OS: All supported platforms
Question/Problem Description

DBTool option 1 shows percent signs for date field of table.
DBTool option 1 shows %%%% for date field of table.

Steps to Reproduce1) prodb sports2000 sports2000
2) prowin sports2000 -1
3) find first order.
assign shipdate = date("10/10/20202").
4) Exit prowin session
5) dbtool sports2000
6) Choose option 1 SQL Width & Date Scan w/Report Option
7) Choose option 0 if running single user or option 1 if the database is served
8) Enter 18 for Table number (which is the table number of the Order table)
9) Enter 1 for verbose level

The output will look like this:
Current max fieldLen for Order (18):
Fld# SQLWidth Max Width ERROR NAME
---- -------- --------- ----- ----
4: Date 0 OrderDate
5: Date 1 %%%% ShipDate
6: Date 0 PromiseDate
7: 50 22 Carrier
8: 100 47 Instructions
9: 40 12 PO
10: 40 5 Terms
11: 8 3 SalesRep
14: 40 17 OrderStatus
16: 40 16 Creditcard

The %%%% is the failed date.

If the date used in step 3 is "10/10/9999" then no error will be reported.
Clarifying Information
Error MessageCurrent max fieldLen for Order (18):
Fld# SQLWidth Max Width ERROR NAME
---- -------- --------- ----- ----
4: Date 0 OrderDate
5: Date 1 %%%% ShipDate
6: Date 0 PromiseDate
7: 50 22 Carrier
8: 100 47 Instructions
9: 40 12 PO
10: 40 5 Terms
11: 8 3 SalesRep
14: 40 17 OrderStatus
16: 40 16 Creditcard
Defect Number
Enhancement Number
Cause
This is expected behavior.

The maximum year value for a date is 9999 in OpenEdge.
Resolution
Set the year to a value 9999 or less.

 
Workaround
Notes
References to Other Documentation:

OpenEdge Datatype Limits Document Reference
Last Modified Date6/23/2020 8:31 PM
Attachment 
Files
Disclaimer The origins of the information on this site may be internal or external to Progress Software Corporation (“Progress”). Progress Software Corporation makes all reasonable efforts to verify this information. However, the information provided is for your information only. Progress Software Corporation makes no explicit or implied claims to the validity of this information.

Any sample code provided on this site is not supported under any Progress support program or service. The sample code is provided on an "AS IS" basis. Progress makes no warranties, express or implied, and disclaims all implied warranties including, without limitation, the implied warranties of merchantability or of fitness for a particular purpose. The entire risk arising out of the use or performance of the sample code is borne by the user. In no event shall Progress, its employees, or anyone else involved in the creation, production, or delivery of the code be liable for any damages whatsoever (including, without limitation, damages for loss of business profits, business interruption, loss of business information, or other pecuniary loss) arising out of the use of or inability to use the sample code, even if Progress has been advised of the possibility of such damages.