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