I know that it's possible to append the current date to the end of each record in the input file and copy it to the output file using the DATE parm in OUTREC. I have a requirement, in which I want the previous day's date to be appeneded instead of current date. Is this possible?
You can use DFSORT's relative date support in INREC, OUTREC and OUTFIL to do that. For example:
would give you '20060928' in positions 81-88 today. There are lots of other variations you can use for other date formats.
You'll need z/OS DFSORT V1R5 PTF UK90007 or DFSORT R14 PTF UK90006 (April, 2006) in order to use DFSORT's relative date function. If you don't have the April, 2006 PTF, ask your System Programmer to install it (it's free). For complete details on all of the new DFSORT and ICETOOL functions available with the April, 2006 PTF, see:
Thnkx a lott.. i will give it a try.. ya i know abt the date formats.. and i even tried this -1 but didnt work i guess.. but will try once more.. or ask my system admin.. is there any way i can know if z/OS DFSORT V1R5 PTF UK90007 or DFSORT R14 PTF UK90006 (April, 2006) is already istalled?