chpsam, to your output you can append ' at the beginning by piping to sed "s/^/'/" and to append at the end by piping the previous output to sed "s/$/'/".
please check if it works.
This is in reply to User8. Thanks for your inputs, tried it, but getting error as below. I am running on AIX 6
$ msg="\'01\',\'02\',\'03\',\'04\',\'05\',\'06\'"
$ echo "'"${msg//\'/}"'"
ksh: "'"${msg//\'/}"'": 0403-011 The specified substitution is not valid for this command.