manikandaseeni
New User
Joined: 01 Mar 2007 Posts: 2 Location: india
|
|
|
|
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? |
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
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 |
|