https://github.com/yarrick/pingfs
Especially if output is in a text based image format like PPM.
Since I don't know COBOL at all, I'm not the one to do that.