Y2K Site Map | Terms of Use | Problem | Steps | Certification | Briefings | Compliance | Solutions | BIOS | Test & Evaluation | Cost
The following Y2K material has been kept available by MITRE for historical purposes only and has not been updated unless noted.
![]() | Y2K Solutions: Suggested Search Keywords |
When scanning source code for date or year references, you may have to experiment to determine the proper amount of flexibility needed for your system. If you abbreviate the keyword too much, you will capture many hits that are not date-related; if you do not abbreviate enough, you will exclude date hits that you intended to capture. See Refining Your Search for recommendations on scanning for keywords.
COBOL Keywords| YEAR | YR | YY | YYYY | YOB |
| DATE | DTE | DOB | DT* | DAT* |
| MMDDYY | MM/DD/YY | YYMMDD | YYMM | MMDDYYYY |
| YY/MM/DD | YYDDD | DDDYY | YYYY/MM/DD | |
| FISCAL | FY | CCYY | CCYYMMDD | |
| CENTURY | CC * | CENT * | CEN * | CENTRY |
| JULIAN | JUL | GREG | GREGORIAN | |
| WHEN-COMPILED | ||||
| EIBDATE (CICS) | FORMATTIME (CICS) | |||
| ASKTIME (CICS) | ||||
| CURRENT-DATE |
* Many of the above keywords have the potential to capture non-date-related references; however, the ones with the asterisks are expected to identify many non-date-related references.Other Keywords
after, asof, as-of, before, begin, cal, calendar, clndr, cntry (could be century or country, however), cur, curr, current, cymd, day, day-of-week (COBOL/370&VS COBOL II), days, eff, effective, end, finish, first, from, frm, fye, horizon, last, leap, mdy, mo, modayr, mon, month, mos, mth, m/d/y, m-d-y, parm, post, roman, start, stop, sys-date, sysdte, through, thru, today, week, weeks, wk, wkly, wks, years, yrs, ytd (but may be $ field), yyddd, ymd, yymmdd, yyyymmdd, yymmm.Refining Your Search
acc, accept, access, accommodate, accord, account, acct, accum, cents, modify, occur, percent, quantify, rectify, solidify, success, update, validate, verify
DATE-WRITTEN (if not desired)
DATE-COMPILED (if not desired)
YEAR-TO-DATE (if $ or total field)
Bear in mind that if you narrow the search too much, you can exclude desired date-related words; e.g., statements that also contain date-related words or date-related words prefixed or suffixed by hyphens or spaces. If you extend your search too much, you may capture nonrelated references. A proper balance tailored to your system leads to a meaningful and comprehensive search.
Most Common Keywordsafter, asof, as-of, before, begin, cal, calendar, ccyy, ccyymmdd, cen, century, clndr, cur, curr, current, cymd, date, day, days, dob, dt, dte, eff, effective, end, finish, first, fiscal, from, frm, fy, fye, greg, gregorian, horizon, jul, julian, last, leap, mdy, mmddyy, mmddyyyy, mo, modayr, mon, month, mos, mth, mm/dd/yy, m/d/y, m-d-y, post, roman, start, stop, sysdate, sysdte, through, thru, today, week, weeks, wk, wkly, wks, year, years, yr, yrs, yy, yyddd, ymd, yymmdd, yyyymmdd, yymmm, '00/00/00','12/31/99' ,'19','1999'DB Keywords
after, asof, as-of, before, begin, cal, calendar, ccyy, ccyymmdd, cen, century, clndr, cur, curr, current, cymd, date, day, days, dob, dt, dte, eff, effective, end, finish, first, fiscal, from, frm, fy, fye, greg, gregorian, horizon, jul, julian, last, leap, mdy, mmddyy, mmddyyyy, mo, modayr, mon, month, mos, mth, mm/dd/yy, m/d/y, m-d-y, post, roman, start, stop, sysdate, sysdte, through, thru, today, week, weeks, wk, wkly, wks, year, years, yr, yrs, yy, yyddd, ymd, yymmdd, yyyymmdd, yymmm, '00/00/00' ,'12/31/99', '19' or '99'
We will start a list of suggested words for individual systems as follows, and
add to it as suggested (e.g., using the Solutions submission form).
Clipper Code Keywords
A list of "words" - keywords to search for in Clipper code:
SET DATE ... Sets the global date display format, might be "dd/mm/yy"There are others such as "yyyy", cmonth(), cdow(), dow(), that should not affect the Y2K problem. AS/400 KeywordsCTOD() Converts Char string in global format to DateDTOC() Date to Char in global formatSET EPOCH TO 1940 Sets a window for dates'dd/mm/39' is 2039 STR('expr',2) where 'expr' might be a year number"19" and '1900' in year manipulation
*FILE, *PGM, and *DTAARA, as well as *QRYDFN, *CMD, *JOBD, & *MENU.