View previous topic :: View next topic
|
Author |
Message |
rajandhla
Active User
Joined: 18 Oct 2005 Posts: 182 Location: Luton UK
|
|
|
|
Hi ALL,
I have got a requirement to reformat the record which has time stamp.
so i am using sort utility with out rec option. but i want current time stamp(i.e the time the job has run). currently iam hard coding time stamp.
SYSIN looks as
//SYSIN DD *
SORT FIELDS=(1,9,CH,A)
OUTREC FIELDS=(1,9,10:C'2005-09-01-10.32.00.000000')
instead of hard code timestamp i want current timestamp.
Please if any one has idea let me know.
Thanks in advance.
Jai |
|
Back to top |
|
|
priyesh.agrawal
Senior Member
Joined: 28 Mar 2005 Posts: 1448 Location: Chicago, IL
|
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
Jai,
You can use the following DFSORT OUTREC statement to get what you asked for:
Code: |
OUTREC FIELDS=(1,9,10:DATE4,C'.000000')
|
DATE4 produces a date of the form 'yyyy-mm-dd-hh.mm.ss'. |
|
Back to top |
|
|
rajandhla
Active User
Joined: 18 Oct 2005 Posts: 182 Location: Luton UK
|
|
|
|
Thanks Priyesh
Regards
jai |
|
Back to top |
|
|
|