akshay@db-3325:/tmp$ cat file
H0187459823 172SMITH, JOE
H0112345678 172DOE, JANE
akshay@db-3325:/tmp$ awk '{print substr($0,1,3)"<put_your_string>"substr($0,13)}' file
H01<put_your_string>172SMITH, JOE
H01<put_your_string>172DOE, JANE
Please always show your OS, shell, and preferred tools' versions, so the solutions proposed will match your setup.
And, add code tags around code and data as required by forum rules.
Any preferred tools?
Mayhap my arithmetics are wrong, but 12345678 and 87459823 cannot fill character positions 4-13?
Sure. Thank you. Will do.
By the way In my example above both numbers have trailing spaces of 2 characters which makes each of length 10.
Starting position, for both lines, is 4 and ending position is 13 (includes 2 spaces at the end).