View previous topic :: View next topic
|
Author |
Message |
Gangaraju
New User
Joined: 15 Dec 2005 Posts: 6
|
|
|
|
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 |
|
|
priyesh.agrawal
Senior Member
Joined: 28 Mar 2005 Posts: 1448 Location: Chicago, IL
|
|
Back to top |
|
|
muffirulz
New User
Joined: 14 Sep 2005 Posts: 74 Location: Atlanta, (USA)
|
|
|
|
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 |
|
|
mijanurit Currently Banned New User
Joined: 26 Aug 2005 Posts: 33 Location: bangalore
|
|
|
|
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 |
|
|
|