FunctionsDeclaration - TypeCobolTeam/TypeCobol GitHub Wiki
CALL <procedure-name>
<INPUT clause>?
<INOUT clause>?
<OUTPUT clause>?
END-CALL?
INPUT < <SENDING MODE clause>? <parameter-name> >+
BY? <CONTENT | REFERENCE | VALUE>
INOUT <parameter-name>+
OUTPUT <parameter-name>+
-
❏ TCRFUN_MATCH_PARAMETERS_SIZE
The logical size (without any concern about comp-*) of allINPUT
,INOUT
,OUTPUT
parameters provided on a given procedure call must match the logical size of all parameters of at least one declared procedure of the same name. -
❏ TCRFUN_MATCH_PARAMETERS_COMPRESSION
The physical compression of allINPUT
,INOUT
parameters provided on a given procedure call must match the physical compression (same comp-* between caller and callee) of all parameters of at least one declared procedure of the same name. -
✓ TCRFUN_EMPTY_CALL
ACALL
statement that has none of theUSING
,INPUT
,INOUT
,OUTPUT
orRETURNING
clauses is recognized as:-
a procedure invocation if there is a procedure declared with no
INPUT
,INOUT
orOUTPUT
parameter visible in the current scope ; -
a function invocation if there is a function declared with no
INPUT
orRETURNING
parameter visible in the current scope ; -
a standard COBOL
CALL
statement if there is neither.
-