Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

how to solve y2k problem using Dfsort

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
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    Post subject: how to solve y2k problem using Dfsort
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 Moderator


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

PostPosted: Thu Mar 01, 2007 9:45 pm    Post subject:
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:

www.ibm.com/servers/storage/support/software/sort/mvs/year2000/
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts DFSORT - Overriding default option TU... Steve Ironmonger DFSORT/ICETOOL 3 Tue Apr 04, 2017 3:54 pm
No new posts Strings with double quotes having pro... raja Arumugam All Other Mainframe Topics 11 Thu Mar 30, 2017 10:34 am
No new posts Problem reading GTF trace output danik56 ABENDS & Debugging 7 Thu Mar 16, 2017 1:02 pm
No new posts DFSORT MUL FIELDS tspr52 DFSORT/ICETOOL 16 Fri Mar 03, 2017 11:53 pm
No new posts ROUNDED Problem with COMPUTE statement shalem COBOL Programming 11 Thu Feb 09, 2017 8:16 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us