According to the documentation, if “FUNCTION ALL INTRINSIC” is specified in the Repository paragraph, the “FUNCTION” keyword is not required to refer to any intrinsic function. Take the following program.
$set sourceformat"free"
program-id. p.
environment division.
configuration section.
repository.
function all intrinsic.
data division.
working-storage section.
01 x pic x(10).
procedure division.
display function length(x)
display length(x)
goback.
end program p.
The first line of the procedure division (with function keyword) compiles fine. The second like (no function keyword) gives the following error:
display length(x)
* 13-S************ **
** User-name required
Is there a certain option required to activate this feature?
Using Rocket (R) COBOL Version 11.0 (C).
