| View previous topic :: View next topic | 
	
	
		| Author | Message | 
	
		| coolguy Beginner
 
  
 Joined: 01 Dec 2004
 Posts: 82
 Topics: 28
 
 
 | 
			
				|  Posted: Wed Sep 06, 2006 3:46 am    Post subject: Small letters to captial letters |   |  
				| 
 |  
				| In Cobol Is there any function to change small letter to Captial letters For Example
 
 Input file
 abcd
 
 i want the output file Like
 ABCD
 
 pls help in that?
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| acevedo Beginner
 
  
 Joined: 03 Dec 2002
 Posts: 127
 Topics: 0
 Location: Europe
 
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| shekar123 Advanced
 
 
 Joined: 22 Jul 2005
 Posts: 528
 Topics: 90
 Location: Bangalore India
 
 | 
			
				|  Posted: Wed Sep 06, 2006 5:43 am    Post subject: |   |  
				| 
 |  
				| coolguy, 
 Try this code:
 
  	  | Code: |  	  | 01 WS-A   PIC X(04) VALUE 'abcd'.
 01 WS-B   PIC X(04) VALUE SPACES.
 PROCEDURE DIVISION.
 0000-PARA.
 DISPLAY 'WS-B IS ' FUNCTION UPPER-CASE(WS-A).
 STOP RUN.
 
 | 
 OUTPUT
 
 _________________
 Shekar
 Grow Technically
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| Cogito-Ergo-Sum Advanced
 
 
 Joined: 15 Dec 2002
 Posts: 637
 Topics: 43
 Location: Bengaluru, INDIA
 
 | 
			
				|  Posted: Tue Sep 12, 2006 1:39 am    Post subject: |   |  
				| 
 |  
				| The INSPECT verb with CONVERTING will also do. _________________
 ALL opinions are welcome.
 
 Debugging tip:
 When you have eliminated all which is impossible, then whatever remains, however improbable, must be the truth.
 -- Sherlock Holmes.
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		|  | 
	
		|  |