Page 1 of 1

check hard codes

PostPosted: Tue Oct 06, 2015 1:35 pm
by meg123
Hi,

I have 100 cobol programs and I wanted to check if there are hard codes present in the programs.
What are the different ways to make such check.

Thanks!

Re: check hard codes

PostPosted: Tue Oct 06, 2015 1:38 pm
by BillyBoyo
Not really, unless you have a tool. Also depends on what you mean by "hard codes" exactky. If you mean literals in the PROCEDURE DIVISION that is one thing, if you mean literals in the DATA DIVISION that is another.

Re: check hard codes

PostPosted: Tue Oct 06, 2015 11:36 pm
by prino
If you have a list of all "hard codes", an edit macro might be useful, just X ALL and do a F "hardcode" for all "hard codes".

That how we did our Y2K conversion, where the list of "hard codes" was a list of fields containing dates. Our check (and if required, convert) rate was about 40 to 80 programs per day...