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

Technote (FAQ)


Question

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.

Cause

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

Answer

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.

Rate this page:

(0 users)Average rating

Add comments

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:

2007-11-13

Translate my page

Machine Translation

Content navigation