Paul
If you include the 'addcentury' function to the define for today-less-30
you get the desired result.
DEFINE TODAYS-DATE DATE CENTURY INCLUDED = &
ADDCENTURY (SYSDATE,19)
DEFINE TODAY-LESS-30 DATE CENTURY INCLUDED = &
addcentury(DATE (DAYS (TODAYS-DATE) - 30),19)
DEFINE X8-DATE CHAR*8 = ASCII (TODAY-LESS-30,8)
REPORT TODAY-LESS-30 FORMAT MMDDYYYY X8-DATE
GO
Also, you probably know this, you don't need to access a file to run a QUIZ
report you can just define and go as above.
Tony Knowles [log in to unmask][log in to unmask]