Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts opening a dataset after reading it fr... arunsoods DFSORT/ICETOOL 5 Wed Oct 04, 2017 3:54 pm
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts Partial color change of a field in CI... waseem0424 CICS 5 Fri Sep 29, 2017 7:56 pm
No new posts File Aid tool to compare numeric data balaji81_k Compuware & Other Tools 2 Tue Sep 26, 2017 3:35 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us