We have a lot of old code that doesn't properly initialize working storage variables and we are getting strange results in our numeric fields. I was hoping to use a compiler directive to accomplish the initialization. I am compiling at the command line and compiling into INTs. I came across the INIT-BY-TYPE compiler directive that seems like it should do what I need, but I am having trouble getting it to work from the command line.
My current compile line looks like this:
cobol prog1.cbl int() REMOVE"CONTROL";
I've tried including the INIT-BY-TYPE directive but I keep getting errors. How do you include this directive on the command line?