Quantcast
Channel: Visual COBOL
Viewing all articles
Browse latest Browse all 5819

Forum Post: Initializing working storage at compile time.

$
0
0
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?

Viewing all articles
Browse latest Browse all 5819

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>