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 

Small letters to captial letters

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
coolguy
Beginner


Joined: 01 Dec 2004
Posts: 82
Topics: 28

PostPosted: Wed Sep 06, 2006 3:46 am    Post subject: Small letters to captial letters Reply with quote

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
View user's profile Send private message
acevedo
Beginner


Joined: 03 Dec 2002
Posts: 127
Topics: 0
Location: Europe

PostPosted: Wed Sep 06, 2006 5:37 am    Post subject: Reply with quote

do you mean something like FUNCTION UPPER-CASE?

http://www.mvsforums.com/helpboards/viewtopic.php?t=794&highlight=uppercase
Back to top
View user's profile Send private message
shekar123
Advanced


Joined: 22 Jul 2005
Posts: 528
Topics: 90
Location: Bangalore India

PostPosted: Wed Sep 06, 2006 5:43 am    Post subject: Reply with quote

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
Code:

WS-B IS ABCD


_________________
Shekar
Grow Technically
Back to top
View user's profile Send private message
Cogito-Ergo-Sum
Advanced


Joined: 15 Dec 2002
Posts: 637
Topics: 43
Location: Bengaluru, INDIA

PostPosted: Tue Sep 12, 2006 1:39 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming 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