Ted Holt wrote a tip on how to do this a few years ago. Check
http://www.itjungle.com/fhg/fhgindex.html and search there.
-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Robert Munday
Sent: Friday, August 03, 2007 10:25 AM
To: Midrange Systems Technical Discussion
Subject: Incrementing An Alpha Value In CL
Today's task is to increment an alpha value in a CL (A to B to C...). As
some batch files process, I am to save the successfully processed file
members to an archive file and assign a batch ID character on the end of
each unique member name. I have a file identifer + Julian Date + AlphaSeq,
which for today would be `FL07215A`. If I process a second batch today, it
woud be `FL07215B`. I can capture the highest value of the eighth character
in the file member name with RTVMBRD - RtvMbrD File(FILENAME) Mbr(*Last)
RtnMbr(&LASTMEMBER) as the member names would be in ascending order. I
could then bump the character to the next value and append it to the first
seven characters of the member name.
Sure, I could write an RPG program to do this, but there must be a
relatively painless way to do it within a CL. Were it my project, a numeric
sequence would be the most simple to accomplish.
How to proceed?
Thanks,
Robert Munday
Munday Software Consultants
Montgomery, AL
on assignment in Nashville, TN