The new format parameter list makes it possible to write both one-time programs using the &CALL command and subsystems in high-level languages, for example COBOL and PL/1.
There are several considerations for high-level languages:
LINKAGE SECTION. ... other parms 01 NCPC.
03 NCPCCNTPIC S9(9) COMP. 01 PARMS OCCURS 1. ... actual count is NCPCCNT 03 LENPIC S9(9) COMP. 03 VALPIC X(256).
PROCEDURE DIVISION USING PLIST ... ... NCPC PARMS.
DCL NCPN_ FIXED BIN(31),
1 NCPNBASED ADDR(NCPN_F),
3 NCPNPROC CHAR(8),
The suggestion for COBOL regarding variable parameter counts applies to PL/1 also. Since the actual number of parameters is not part of the pseudo-array, a REFER structure cannot be used. Use PARMS(1) on the DCL.
Do not compile with SUBSCRIPTRANGE in effect.
| Copyright © 2011 CA. All rights reserved. | Tell Technical Publications how we can improve this information |