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

Display ... On Exception?

$
0
0

I'm getting an "invalid operand" as well as a couple of other errors on the following statement:

display ctr in-emp-record upon console
    on exception
        display "Wow!"
    not on exception
        add 1 to ctr
end-display.

I thought that adding "upon console" would have satisfied the syntax rule 7 for format 1 on the following documentation page:

http://documentation.microfocus.com/help/index.jsp?topic=%2Fcom.microfocus.eclipse.infocenter.visualcobol.vs2013%2FGUID-CBF8DCDC-1F63-4C02-AC0C-7FABBE6A04AD.html

Any other suggestions on using the "on exception" clause?


Viewing all articles
Browse latest Browse all 4356

Trending Articles



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