MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

why it does not give 2001, 2002?

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
mf_user
Intermediate


Joined: 01 Jun 2003
Posts: 372
Topics: 105

PostPosted: Wed Jan 06, 2010 11:19 am    Post subject: why it does not give 2001, 2002? Reply with quote

Hi,

The below SORT gives me output like -
Code:

2101
2102
2010


Why it does not give output like -
Code:

2001
2002
2010


Job:
Code:

//STEP0002 EXEC PGM=ICEMAN
//SYSOUT    DD SYSOUT=*   
//SORTIN    DD *           
01                         
02                         
10                         
//SORTOUT   DD SYSOUT=*   
//SYSIN     DD    *       
  OPTION COPY             
  INREC FIELDS=(1,2,Y2Z)   
/*                         


Please help.

Thanks.
_________________
MF
==
Any training that does not include the emotions, mind and body is incomplete; knowledge fades without feeling.
==
Back to top
View user's profile Send private message Send e-mail
Frank Yaeger
Sort Forum Moderator
Sort Forum Moderator


Joined: 02 Dec 2002
Posts: 1618
Topics: 31
Location: San Jose

PostPosted: Wed Jan 06, 2010 12:22 pm    Post subject: Reply with quote

It depends on what you have set up for the Y2PAST option.

I have the default (Y2PAST=80) here so it uses 1930 to 2029 as indicated by this message:

ICE168I 0 CENTURY WINDOW FOR Y2 FORMAT FIELDS IS FROM 1930 TO 2029

and I get this output:

Code:

2001 
2002 
2010 


If you're not getting that, then you are using a different Y2PAST value.

Look at your ICE168I message to see what you have the century window set up as.

You can add something like the following to change the century window:

Code:

    OPTION Y2PAST=1990


This would give a century window of 1990-2089.
_________________
Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
Back to top
View user's profile Send private message Send e-mail Visit poster's website
mf_user
Intermediate


Joined: 01 Jun 2003
Posts: 372
Topics: 105

PostPosted: Wed Jan 06, 2010 2:25 pm    Post subject: Thx Reply with quote

Thank you Frank. It is clear now.
_________________
MF
==
Any training that does not include the emotions, mind and body is incomplete; knowledge fades without feeling.
==
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group