Th[size=85][size=85][size=85][size=85][/size][/size][/size][/size]is is for formatting the the date MM/DD/YYYY to YYYYMMDD.
Less than equal to 7 days will be moved into OUT1. Should i give DATE1 ?
I don't understand what you're asking. INCLUDE=(81,8,CH,LE,DATE1-7) says to keep the records in which the yyyymmdd date in 81-88 is less than or equal to todays date minus 7 days in yyyymmdd format. That's what you said you wanted. What do you mean by "should I give DATE1"? DATE1 is the current date. DATE1-7 is the current date minus 7 days.
i am not sure what SAVE do here ?. how Greater than 7 days records to move here ?
SAVE keeps the records that were NOT kept by the INCLUDE, so those would be the records in which the yyyymmdd date in 81-88 is greater than todays date minus 7 days in yyyymmdd format. That's what you said you wanted.
The job I gave you creates the output you wanted from the input you showed. Did you try it?
If you're not familiar with DFSORT and DFSORT's ICETOOL, I'd suggest reading through "z/OS DFSORT: Getting Started". It's an excellent tutorial, with lots of examples, that will show you how to use DFSORT, DFSORT's ICETOOL and DFSORT Symbols. You can access it online, along with all of the other DFSORT books, from:http://www.ibm.com/support/docview.wss? ... g3T7000080