The compiler must be informed that the CA Compress/2 subroutines are Assembler subroutines by declaring all entry points, as follows:
DCL (SHRINK,EXPAND,SHRINKZ,EXPANDZ,SHRINKS,EXPANDS,CLOSE) OPTIONS (ASM INTER);
Any unused subroutines can be omitted. The CA Compress/2 subroutines can then be called using the standard PL/I CALL statement.
As in the case of COBOL, dynamic calls to SHRINK and EXPAND invoke the utilities, causing unpredictable results.
| Copyright © 2012 CA. All rights reserved. |
|