View previous topic :: View next topic
|
Author |
Message |
Pavankumar.m Warnings : 1 New User
Joined: 28 Nov 2010 Posts: 53 Location: Mumbai
|
|
|
|
hi ,
can you please tell me how to convert numeric to alphabatic.
example
1 to A
2 to B
4 to D
26 to Z
thanks. |
|
Back to top |
|
|
Pavankumar.m Warnings : 1 New User
Joined: 28 Nov 2010 Posts: 53 Location: Mumbai
|
|
|
|
adding to querry,
using COBOL any way |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
Code: |
01 something-nicely-named PIC X(26) VALUE "AB....XYZ".
01 FILLER REDEFINES something-nicely-named.
05 FILLER OCCURS 26 TIMES.
10 a-name-for-the-letter PIC X. |
And use the value of your number as a subscript to the table. |
|
Back to top |
|
|
sivanagaraju.k
New User
Joined: 12 Jan 2010 Posts: 1 Location: US
|
|
|
|
I agree with Bill's answer. It is pretty simple and straight forward method. |
|
Back to top |
|
|
Pavankumar.m Warnings : 1 New User
Joined: 28 Nov 2010 Posts: 53 Location: Mumbai
|
|
|
|
hi bill, thank you so much ..it worked... |
|
Back to top |
|
|
|