Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How to change the data lower case to uppercase

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: How to change the data lower case to uppercase
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: 1452
Location: Chicago, IL

PostPosted: Thu Dec 15, 2005 4:27 pm    Post subject: Re: Doubt in cobol
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: Kentucky, USA

PostPosted: Thu Dec 15, 2005 9:29 pm    Post subject: Re: Doubt in cobol
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    Post subject: Re: How to change the data lower case to uppercase
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Sorting group data rajella DFSORT/ICETOOL 4 Sun Jan 22, 2017 11:32 pm
No new posts Fail to change physical VSAM filename... jacobdng CICS 7 Fri Jan 20, 2017 12:36 pm
No new posts Storing huge volume of data, compare ... Pradeep K M All Other Mainframe Topics 3 Mon Jan 16, 2017 5:08 pm
No new posts how to recover an uncataloged VSAM da... archanamuthukrishnan All Other Mainframe Topics 3 Wed Jan 11, 2017 6:18 pm
No new posts Summing on Mixed Case Literals Roy Ware SYNCSORT 3 Tue Jan 03, 2017 10:18 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us