ISPLLIB and -3 return code when using DSNREXX CONNECT in REXX
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.