MVSFORUMS.com A Community of and for MVS Professionals 
				 
		
		
	
		View previous topic  :: View next topic    
	
	
		Author 
		Message 
	 
	
		Sebanpj Beginner 
			
				Posted: Wed Apr 01, 2009 10:52 am     Post subject: Sort only considering numbers in an alphanumeric fields.  
			
				 
			
				I have to sort a file based on an alphanumeric field. While sorting I should not consider the character values. The sort order should be as if all the characters in the field were zeroes. Please see the samble input and output below. 
  	  Code:  		  4356zz5
 	 
  	  Code:  		  nnnnnnn
 	 
  
		
 
	
		Back to top  
	
		 
	
		kolusu Site Admin 
			
				Posted: Wed Apr 01, 2009 12:24 pm     Post subject:   
			
				 
			
				Sebanpj , 
 	  Code:  		  
 	 
www.linkedin.com/in/kolusu  
		
 
	
		Back to top  
	
		 
	
		Sebanpj Beginner 
			
				Posted: Wed Apr 01, 2009 1:52 pm     Post subject:   
			
				 
			
				Hi Kolusu,
  
		
 
	
		Back to top  
	
		 
	
		kolusu Site Admin 
			
				Posted: Wed Apr 01, 2009 2:22 pm     Post subject:   
			
				 
			
				Sebanpj , 
www.linkedin.com/in/kolusu  
		
 
	
		Back to top  
	
		 
	
		Bill Dennis Advanced 
			
				Posted: Wed Apr 01, 2009 3:41 pm     Post subject:   
			
				 
			
				Perhaps the ALTSEQ option would work. It will be cumbersome as you will need to provide every character value with an alternate sort value of x'F0'.  	  Code:  		  //SYSIN    DD *                                      
 	 
Or try kolusu example since SyncSort eventually mimics most DFSort function.  
		
 
	
		Back to top  
	
		 
	
		Sebanpj Beginner 
			
				Posted: Fri Apr 03, 2009 6:53 pm     Post subject:   
			
				 
			
				Hi Kolusu and Dennis,
  
		
 
	
		Back to top  
	
		 
	
		
		
		 
	 
	
		 
  
	
You cannot  post new topics in this forumcannot  reply to topics in this forumcannot  edit your posts in this forumcannot  delete your posts in this forumcannot  vote in polls in this forum