Hello,
I work with RM/Cobol 7.03 and RM/Cobol 11, according to some sources i've checked it's not possible to do a "XOR" expression in cobol.
Hopefully one one you guys can help me with this. BTW sorry for my broken english, this is not my mother language.
I need to calculate an LCR(Hexadecimal) in Cobol.
ex. I need to take this string "01,50,1,T0501,78174,0,0,11,0,1,"
then do (0 XOR 1) = RES, do (RES XOR 1) = RES2, do (RES2 XOR ,) and continue for every character of the given string(commas included). The final result sould be an Hexadecimal value. According to the string source the result should be a "59".
Thanks in advance.
David L.
I work with RM/Cobol 7.03 and RM/Cobol 11, according to some sources i've checked it's not possible to do a "XOR" expression in cobol.
Hopefully one one you guys can help me with this. BTW sorry for my broken english, this is not my mother language.
I need to calculate an LCR(Hexadecimal) in Cobol.
ex. I need to take this string "01,50,1,T0501,78174,0,0,11,0,1,"
then do (0 XOR 1) = RES, do (RES XOR 1) = RES2, do (RES2 XOR ,) and continue for every character of the given string(commas included). The final result sould be an Hexadecimal value. According to the string source the result should be a "59".
Thanks in advance.
David L.