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

how to solve y2k problem using Dfsort


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

New User


Joined: 01 Mar 2007
Posts: 2
Location: india

PostPosted: Thu Mar 01, 2007 2:49 pm
Reply with quote

how to solve y2k problem using Dfsort? Example i have the series 00,01,02,03,04,05,95,96,97,98,99,i need to sort like this 95,96,97,98,99m, 00,01,02,03,04,05 using dfsort? how ? any one help me?
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: Thu Mar 01, 2007 9:45 pm
Reply with quote

You can handle two-digit years for Y2K by using DFSORT's Y2x formats along with the Y2PAST=x parameter to set the century window. In your case, you could use this DFSORT job to do what you asked for:

Code:

//S1    EXEC  PGM=ICEMAN
//SYSOUT    DD  SYSOUT=*
//SORTIN DD *
00
01
02
03
04
05
95
96
97
98
99
/*
//SORTOUT DD SYSOUT=*
//SYSIN    DD    *
  OPTION Y2PAST=1990
  SORT FIELDS=(1,2,Y2C,A)
/*


Y2C handles 2-digit years according to the century window set up by Y2PAST. With Y2PAST=1990, the century window is 1990-2089. You can change it as needed.

For complete information on DFSORT's Y2k support, see:

Use [URL] BBCode for External Links
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts DFSORT GUID DFSORT/ICETOOL 3
No new posts Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
Search our Forums:

Back to Top