Ahsan
Using query you can define the following result fields:
-----------------------------------------------------------------------------------
Define Result Fields
Type definitions using field names or constants and operators, press Enter.
Operators: +, -, *, /, SUBSTR, ||, DATE...
Field Expression Column Heading Len Dec
SDDATE date(
'20'||substr(digits(SDTRDJ),2,5))
TODAY CURRENT(DATE)
DIFFERENCE DAYS(SDDATE) - DAYS(TODAY)
-----------------------------------------------------------------------------------
You will then be able to make the following selections :
-----------------------------------------------------------------------------------
Select Records
Type comparisons, press Enter. Specify OR to start each new group.
Tests: EQ, NE, LE, GE, LT, GT, RANGE, LIST, LIKE, IS, ISNOT...
AND/OR Field Test Value (Field, Number, 'Characters', or ...)
SDTRDJ NE 0
AND DIFFERENCE LE 3
AND DIFFERENCE GE 0
-----------------------------------------------------------------------------------
This does not help with the exclusion of weekends but does enable you select SDTRDJ where it is less that today + 3 days.
Hope this helps.
Regards
Gavin