Quantcast
Channel: Visual COBOL - Forum - Recent Threads
Viewing all articles
Browse latest Browse all 4356

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 4356

Trending Articles