Joined: 06 Jun 2008 Posts: 8280 Location: Dubuque, Iowa, USA
You need to learn that COBOL is a compiled language. As such, all variable references are fixed at compile time. There is no way, at run time, to modify COBOL code that has been compiled. You can use arrays as suggested by others to accomplish something similar to what you ask, but the direct answer to your question is that no, once the program has been compiled there is no way to change any source statements in any way, shape, style, or form.