I'm looking at an old program that our company uses. I've never programmed in COBOL before so this is a very complicated project for me. Anyway, the program creates a report using the report writer (as I understand). I've been looking at some of the variables in the program and it seems like some of the variables receive values many times. For instance, in the program a variable called sort-amount receives data from a data file field called arh-invoice-amount. Then, the same exact variable receives another value in another procedure. It doesn't look like sort-amount did anything with the first value it received. The thing that I noticed is that there is a release statement before the start of the procedure in which the sort-amount receives the second value. Does that release statement tell the program where to dump the value that sort-amount received? Again, I'm really new to this language so please explain things thoroughly.
Please let me know if I need to clarify anything.
Thanks in advance,