PL/I syntax

In PL/I, use the following syntax to invoke a Language Environment callable service with a feedback code in effect:

Read syntax diagramSkip visual syntax diagram
Syntax

>>-CALL CEExxxx--(parm1parm2, ...parmn*);------------------><

PL/I also allows you to omit arguments. In place of the argument, code an asterisk (*), as shown below:

Read syntax diagramSkip visual syntax diagram
Syntax

>>-CALL CEExxxx--(**, ...*, );-------------------------------><

Note that you cannot invoke callable services as function references.

See Parameter list for invoking callable services for a description of this syntax.

The value of register 15 upon return from any Language Environment callable service is undefined. Use of OPTIONS(RETCODE) is not recommended, because a subsequent use of the PLIRETV built-in function returns an undefined value.

If you code your own declarations for the Language Environment callable services, be sure to specify all required arguments in the CALL statement. Figure 2 illustrates a call in which the feedback code to CEEDATE was incorrectly omitted.

You can use the SCEESAMP file CEEIBMAW to declare Language Environment callable services with a PL/I call to a Language Environment callable service, as Figure 1 shows.

Figure 1. Sample callable services invocation syntax for PL/I
%INCLUDE CEEIBMAW;
CALL CEExxxx(parm1, parm2, ... parmn, fc);