View previous topic :: View next topic
|
Author |
Message |
arunjosephaj
New User
Joined: 21 Mar 2006 Posts: 20 Location: India
|
|
|
|
Hi..
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? |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
You can use DFSORT's relative date support in INREC, OUTREC and OUTFIL to do that. For example:
Code: |
INREC OVERLAY=(81:DATE1-1)
|
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:
Use [URL] BBCode for External Links |
|
Back to top |
|
|
arunjosephaj
New User
Joined: 21 Mar 2006 Posts: 20 Location: India
|
|
|
|
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? |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
Quote: |
is there any way i can know if z/OS DFSORT V1R5 PTF UK90007 or DFSORT R14 PTF UK90006 (April, 2006) is already istalled? |
Yes, look at the messages from any DFSORT run. If you see 'ICE201I E', you have the April, 2006 PTF. If you see 'ICE201I 0', you don't have the PTF. |
|
Back to top |
|
|
|