>>> I'd like to see the idea extended to cover 'yesterday', 'previous work day', 'beginning of the month', etc.
Sean, You can currently use DFSORT to generate these dates as SET variables for you and then have it in a PDS member so that you can use it as an INCLUDE statements. This will work with any given date. NEXTDday can be used to calculate the next specified day for a date field. So for example if you wanted the next Friday then you would use NEXTDFRI PREVDday can be used to calculate the previous specified day for a date field. So for example if you wanted the previous Wednesday , then you would use PREVDWED. LASTDAYW, LASTDAYM, LASTDAYQ or LASTDAYY can be used to calculate the last day of the week, month, quarter or year for a date field. Thanks, Kolusu DFSORT Development IBM Corporation ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
