COBOL is used quite heavily for all kinds of online apps using messaging (MQSeries and others), any big database you care to name, TCP/IP, and interfacing nicely with Java (among other languages). The apps are only as poor as the programmers who write them--COBOL is not inherently limiting, and is in no way stuck in a batch record niche.