View previous topic :: View next topic
|
Author |
Message |
rajandhla
Active User
Joined: 18 Oct 2005 Posts: 182 Location: Luton UK
|
|
|
|
Hi guys,
Could you please help me out........
The incoming/input file contains the date in format 'yyddd'.
I need to convert the date in to 'yyyymmdd' or ddmmyyyy' in the output file.
JR |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
Back to top |
|
|
patypaz
New User
Joined: 21 Jun 2007 Posts: 2 Location: Brazil
|
|
|
|
You can use :
include cond=(01:DATE=(dmy))
|
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
patypaz,
Huh? INCLUDE doesn't do conversions, that syntax isn't correct for INCLUDE or INREC, and even if the syntax was correct it wouldn't do a conversion.
The link posted by superk shows how to do the conversion.
If you're going to post supposed "solutions", please test them before posting. |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
With z/OS DFSORT V1R5 PTF UK51706 or z/OS DFSORT V1R10 PTF UK51707 (Nov, 2009), DFSORT now has built-in date conversion functions for these types of situations . For complete details on date conversion functions and the other new functions available with the Nov, 2009 DFSORT PTF, see:
www.ibm.com/support/docview.wss?rs=114&uid=isg3T7000174 |
|
Back to top |
|
|
|