IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to change the data lower case to uppercase


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Gangaraju

New User


Joined: 15 Dec 2005
Posts: 6

PostPosted: Thu Dec 15, 2005 4:00 pm
Reply with quote

Hi

How to change the data lower case to uppercase
suppose in my field X(10) contains lowercase letters how to change those letter to uppercase letter.

please give me reply soon
Back to top
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1448
Location: Chicago, IL

PostPosted: Thu Dec 15, 2005 4:27 pm
Reply with quote

http://ibmmainframes.com/viewtopic.php?t=1856
Back to top
View user's profile Send private message
muffirulz

New User


Joined: 14 Sep 2005
Posts: 74
Location: Atlanta, (USA)

PostPosted: Thu Dec 15, 2005 9:29 pm
Reply with quote

hi,

Follow this...

declare the below code in working storage section

01 LOWER-TO-UPPER-TRANSFORM.
05 TRANS-FROM.
10 LOWER-CASE PIC X(33) VALUE
'abcdefghijklmnopqrstuvwxyz???????'.
05 TRANS-TO.
10 UPPER-CASE PIC X(33) VALUE
'ABCDEFGHIJKLMNOPQRSTUVWXYZ???????'.

and the use this code

INSPECT WS-UPPER
CONVERTING
LOWER-CASE TO UPPER-CASE

where ws-upper is your variable

regards
Back to top
View user's profile Send private message
mijanurit
Currently Banned

New User


Joined: 26 Aug 2005
Posts: 33
Location: bangalore

PostPosted: Sun Jan 08, 2006 11:02 pm
Reply with quote

hi gangaraju,

u can do it using DFSORT utility program.

OUTREC FIELDS=(starting pos,10, TRAN=LTOU)

i think it will help.

regards
mija
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts How to save SYSLOG as text data via P... All Other Mainframe Topics 4
No new posts Store the data for fixed length COBOL Programming 1
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
No new posts SCOPE PENDING option -check data DB2 2
Search our Forums:

Back to Top