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 convert numeric to alphabatic

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
Pavankumar.m
Warnings : 1

New User


Joined: 28 Nov 2010
Posts: 53
Location: Mumbai

PostPosted: Fri Apr 12, 2013 1:29 pm    Post subject: how to convert numeric to alphabatic
Reply with quote

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
View user's profile Send private message

Pavankumar.m
Warnings : 1

New User


Joined: 28 Nov 2010
Posts: 53
Location: Mumbai

PostPosted: Fri Apr 12, 2013 1:30 pm    Post subject: Reply to: how to convert numeric to alphabatic
Reply with quote

adding to querry,
using COBOL any way
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7315

PostPosted: Fri Apr 12, 2013 1:42 pm    Post subject: Reply to: how to convert numeric to alphabatic
Reply with quote

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
View user's profile Send private message
sivanagaraju.k

New User


Joined: 12 Jan 2010
Posts: 1
Location: US

PostPosted: Fri Apr 12, 2013 7:59 pm    Post subject:
Reply with quote

I agree with Bill's answer. It is pretty simple and straight forward method.
Back to top
View user's profile Send private message
Pavankumar.m
Warnings : 1

New User


Joined: 28 Nov 2010
Posts: 53
Location: Mumbai

PostPosted: Fri Apr 12, 2013 10:06 pm    Post subject:
Reply with quote

hi bill, thank you so much ..it worked...
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 Convert CLIST to REXX cvnlynn CLIST & REXX 12 Tue Jun 27, 2017 2:06 am
No new posts Validate if a Value from the file is ... balacsv2 COBOL Programming 8 Mon Jun 19, 2017 11:52 pm
No new posts Validate date and numeric fields and ... Rick Silvers DFSORT/ICETOOL 6 Thu May 11, 2017 6:51 pm
No new posts Convert current to hex value gopurs DFSORT/ICETOOL 4 Wed Feb 15, 2017 5:40 am
No new posts Converting decimal to numeric using I... Balaryan DFSORT/ICETOOL 4 Thu Feb 02, 2017 11:27 pm


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