On Tue, 16 Dec 2025 22:59:13 GMT, [email protected] <[email protected]> wrote:

>found out that LMINIT Failed with RC=8
>LMCOPY Failed with RC=10 - I dont quite understand why

Capture all errors using by inserting SIGNAL ON ERROR at the beginning of your 
REXX: e.g.
SIGNAL ON ERROR NAME ERR_FUNCTION

ISPF has full error message that can be displayed in the err_function which 
should be at the end of your REXX: e.g.  
exit 0
err_function:
    say rc zerrlm
    say "on line" sigl sourceline(sigl)
    exit 16

RC is documented with each command in the doc. Alternatively, view a new clist 
or rexx member and use the model command (e.g. model lmcopy) which includes 
each of the RC's for that command. 

In a previous message, I told you that the DSN in LMINIT was not quoted.  
LMINIT is library managements version of ALLOC.

As for LMCOPY, look up RC=10 and I suspect it will tell you the LMINIT is 
missing.

In the TRACE I notice that each variable substitution is displayed. 

>Say 'out_dsn_var ......... ' out_dsn_var..In CASE III set the following -HUSER 
>= USERID() 

Unquoted datasets are prefixed with the value from ZPREFIX which you obtain 
using "ISPEXEC VGET ZPREFIX".

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to