If I had to do this, I would read the cntlout data set and generate proc format code by writing to a file with put statements. Do you just have plain vanilla formats/informats? Or do you have picture formats or something more complex? If you just have plain vanilla formats/informats, I don't think it would be too hard to write this program. If you made it a macro, you could quickly generate proc format code if this situation comes up again. Of course, you were hoping that somebody already wrote this macro so you would not have to. Sorry, but I don't have one, as I have never needed one.
... View more