IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Need to convert the date in to 'yyyymmdd' or ddmmyyyy'


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
rajandhla

Active User


Joined: 18 Oct 2005
Posts: 182
Location: Luton UK

PostPosted: Mon Aug 07, 2006 2:51 pm
Reply with quote

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
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Mon Aug 07, 2006 3:52 pm
Reply with quote

Here is a previous post of the same topic.
Back to top
View user's profile Send private message
patypaz

New User


Joined: 21 Jun 2007
Posts: 2
Location: Brazil

PostPosted: Fri Jun 22, 2007 6:34 am
Reply with quote

You can use :

include cond=(01:DATE=(dmy))

icon_lol.gif
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Fri Jun 22, 2007 8:23 pm
Reply with quote

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
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Tue Nov 24, 2009 2:22 am
Reply with quote

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
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Sorting date into YYYYMMDD, and creat... DFSORT/ICETOOL 13
No new posts Sort card to know that creation date ... DFSORT/ICETOOL 10
No new posts Convert CSV to flat file. DFSORT/ICETOOL 6
No new posts convert arbitrary UTC to local (SYD) ... COBOL Programming 1
No new posts Help with SORT - I need to validate d... DFSORT/ICETOOL 11
Search our Forums:


Back to Top