Created On:  20 November 2012

Problem:

The Visual COBOL v2.1 documentation states that the return parameter for the C$SetEnv RM library call within is optional.

Syntax:

CALL "C$SetEnv" USING name, value [, return]

Parameters:

name  PIC X(n)
value  PIC X(n)
return PIC 9(n) BINARY, where n can be a digit from 1 to 9

However if the "return" parameter is not used an ArrayIndexOutOfBounds Exception occurs.

Resolution:

The return parameter must be used.
Incident #2602271