IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Incrementing Alphanumeric


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sriraj1122

New User


Joined: 18 Dec 2008
Posts: 15
Location: Hyderabad

PostPosted: Tue Jun 07, 2011 1:08 pm
Reply with quote

Hi All,

I have a requirement to increment the values as below

A01
A02
A03
A04
.
.
.
A99
B01
B02
.
.
B99
C01
C02
.
.
.

Is there anyway of increment alphabetical values as above ?

Thanks in advance..

Regards,
Sriraj K
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Tue Jun 07, 2011 1:12 pm
Reply with quote

Table of 26 values, letters, increment index each time you reset your numeric counter.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue Jun 07, 2011 1:21 pm
Reply with quote

if You had searched the forums with incrementing alphanumeric or better increment alphanumeric
You would have found the code snippets an You would not have had the need to ask
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts convert alphanumeric PIC X(02) to hex... COBOL Programming 3
No new posts Packed decimal to Alphanumeric COBOL Programming 2
No new posts Alphanumeric to Packed Decimal Conver... COBOL Programming 2
This topic is locked: you cannot edit posts or make replies. Can a alphanumeric data be moved to a... COBOL Programming 10
This topic is locked: you cannot edit posts or make replies. Incrementing current time field by 30... DFSORT/ICETOOL 11
Search our Forums:

Back to Top