You can write an edit routine in COBOL for native z/OS or TSO.
In this section, COBOL refers to VS COBOL II, COBOL/370, and COBOL for z/OS unless otherwise stated.