Anyone know of a utility that will strip comments out of a CL program? We have many programs with more comments than actual code (for history purposes) and I'd like to see just the actual code. And no, I don't want to RTVCLSRC and lose indentation, etc.
Software/Hardware used:
ASKED:
January 5, 2009 8:06 PM
UPDATED:
December 14, 2011 6:07 PM
It would be a pretty simple rpg program
OverRide to the member name
Read each line
1. Scan for /* if found
replace every space from there to */ with blanks
repeat 1 until not found
2. if line is blank delete it.
else update it.
Phil
Don’t forget that comments, notoriously those attached to a command, can be continued on to multiple lines.