| View previous topic :: View next topic | 
	
	
		| Author | Message | 
	
		| mls Beginner
 
 
 Joined: 10 Nov 2005
 Posts: 9
 Topics: 5
 
 
 | 
			
				|  Posted: Mon Nov 24, 2008 3:21 am    Post subject: Change Upper case? |   |  
				| 
 |  
				| Hi, 
 I have names in upper case and I would like to change them to Name format eg.
 
 Input
 LASTNAME FIRSTNAME
 
 Desired O/p
 Lastname Firstname
 
 I can't use function Lowercase as it will change all to lower case and I want to first alphabet to be in uppercase. pls let me know if there is any utility in COBOL for this.
 
 Thanks!!
 MLS
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| dbzTHEdinosauer Supermod
 
 
 Joined: 20 Oct 2006
 Posts: 1411
 Topics: 26
 Location: germany
 
 | 
			
				|  Posted: Mon Nov 24, 2008 3:40 am    Post subject: |   |  
				| 
 |  
				| I would UNSTRING the two names into descrete fields; use REFERENCE MODIFICATION with FUNCTION LOWERCASE
 
  	  | Code: |  	  | MOVE FUNCTION LOWERCASE(firstname-field(2:)) to firstname-field(2:)
 MOVE FUNCTION LOWERCASE(lastname-field(2:)) to lastname-field(2:)
 
 | 
 String lastname, space, and firstname delimited by spaces.
 _________________
 Dick Brenholtz
 American living in Varel, Germany
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| mls Beginner
 
 
 Joined: 10 Nov 2005
 Posts: 9
 Topics: 5
 
 
 | 
			
				|  Posted: Mon Nov 24, 2008 6:36 am    Post subject: |   |  
				| 
 |  
				| Thanks a lot! It worked! |  | 
	
		| Back to top |  | 
	
		|  | 
	
		|  | 
	
		|  |