need a solution for replacing an array of nos to alphabets
Posted: Tue Jan 08, 2013 9:46 pm
Hi everyone,
I have a requirement where i want a data translation as given below
i/p file: FB recl 1050
array (occurs 25 times):
value1 pic xx.
value2 pic 9(8).
value3 pic x(14).
now for all the occurances of value1, i need to change the value as follows
01 -> A ( meaning A followed by a space)
02 -> B
03 -> C
.
.
.
.
25 -> Z.
I tried altseq but i think it translates only for 1 byte daya.
using findrep seems very complex.
Is there anything that can be easier
Thanks!
I have a requirement where i want a data translation as given below
i/p file: FB recl 1050
array (occurs 25 times):
value1 pic xx.
value2 pic 9(8).
value3 pic x(14).
now for all the occurances of value1, i need to change the value as follows
01 -> A ( meaning A followed by a space)
02 -> B
03 -> C
.
.
.
.
25 -> Z.
I tried altseq but i think it translates only for 1 byte daya.
using findrep seems very complex.
Is there anything that can be easier
Thanks!