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 Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm
No new posts Append data from two files into a sin... Praveen04 DFSORT/ICETOOL 5 Thu Mar 16, 2017 7:29 pm
No new posts SPUFI -- Joining 3 tables – data in... Sysaron DB2 2 Wed Mar 08, 2017 4:18 am
No new posts Overriding PS data in rexx Shaheen Shaik CLIST & REXX 8 Fri Mar 03, 2017 5:08 pm
No new posts JCL to get submitted once dataset has... vinu78 JCL & VSAM 17 Thu Feb 16, 2017 7:32 am


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