‎2007 Sep 12 6:53 AM
Hi,
Is it possible to increment each character in a string by some value.
DATA: C(10) TYPE C VALUE 'MAHES'.
Here i would like to transform and display the string like:
M + 2 = O
A + 2 = C
H + 2 = J
E + 2 = G
S + 2 = U
Pl. give me some inputs.
with best regards
Mahesh
‎2007 Sep 12 6:54 AM
‎2007 Sep 12 7:07 AM
Hi,
it is possible if you take the ascii values of these letters and add numbers then convert the number to ascii calue.
‎2007 Sep 12 7:03 AM
hi,
one way to achieve ur task is to assign values to a=1,b=2,c=3,..............................z=26.
and perform ur operations.
declare all variables as character data type.
REWARD ALL USEFUL ANSWERS.
with regards,
Suresh Aluri.
‎2007 Sep 12 7:16 AM
try to find some FM to convet ASCII
Message was edited by:
jbpdubey