IBM Support

ISPLLIB and -3 return code when using DSNREXX CONNECT in REXX

Technote (FAQ)


I get a -3 return code when I use DSNREXX CONNECT in REXX. The SDSNLOAD library is allocated in the STEPLIB statement for the batch execution and is allocated through LIBDEF (ISPLLIB) for the online run.


ISPLLIB works only for those programs that are started through ISPF SELECT PGM/CMD commands, not MVS LOADS etc, which DSNREXX uses.


You need to use TSOLIB (at TSO READY) or one of the other dynamic STEPLIB programs on the CBT (which can - at your own risk - be used inside ISPF) to put SDSNLOAD into your step task lib.

Document information

More support for: DB2 for z/OS
DB2 Rexx

Software version: 7.0, 8.0, 9.1

Operating system(s): z/OS

Reference #: 1163149

Modified date: 17 December 2016

Translate this page: