Remove characters from the end of a string or number and append others

Posted on September 3, 2015

Convert 1234.4569.3 to 1234.4569.1

PQN
MV %3 “1234.4569.3”
T %3
MV %4 %3:G2.1
T %4
IF %4 > “1” MV %4 “1”
T %4
MV %5 %3:G0.2
T %5
T C%5,%5,”.1″

Categories: JCL G-coorelative


Comments are closed