Syntax and Linkage Conventions for Allocate Queue Services
All allocate queue callable services have a general calling syntax
as follows:
CALL routine_name (parameters,reason_code,return_code)
Some specific calling formats for languages that can call APPC/MVS
services are:
- COBOL
- CALL “routine_name” USING parm1,parm2,...reason_code,return_code
- FORTRAN
- CALL routine_name (parm1,parm2,...reason_code,return_code)
- C
- routine_name (parm1,parm2,...reason_code,return_code)
- PL/I
- CALL routine_name (parm1,parm2,...reason_code,return_code)
- REXX
- ADDRESS APPCMVS “routine_name parm1 parm2...reason_code
return_code”
For REXX, enclose the routine name and all parameters within one pair of single or double quotes. Parameters must be initialized to appropriate values. The host command environment resolves the parameter values. For more information, see z/OS TSO/E REXX Reference.
- Assembler Call macro
- CALL routine_name,(parm1,parm2,...reason_code,return_code),VL
Note that all allocate queue services return (as parameters) a return and reason code that shows the result of the call.