CA-Spool has an API.
To use it from CA-IDMS, special consideration must be taken regarding the involved programs.
The CA-Spool interface programs are assembler routines which make SVC calls.
As such, they must not be invoked from a program running inside a CA-IDMS address space with a cobol CALL.
Doing so will result in T0BE abends (invalid SVC 190).
A CA-IDMS TRANSFER CONTROL must be used.
The invoked programs must be defined to the CA-IDMS System Generation, and they must have the SAVEAREA attribute.