The correct method is tp display the short and long messages when there is an 
error return code.


-- 
Shmuel (Seymour J.) Metz
http://mason.gmu.edu/~smetz3
עַם יִשְׂרָאֵל חַי
נֵ֣צַח יִשְׂרָאֵ֔ל לֹ֥א יְשַׁקֵּ֖ר




________________________________________
From: IBM Mainframe Discussion List <[email protected]> on behalf of Jon 
Perryman <[email protected]>
Sent: Wednesday, December 17, 2025 4:41 PM
To: [email protected] <[email protected]>
Subject: Re: Need Help using LMCOPY in a Rexx program


External Message: Use Caution


On Wed, 17 Dec 2025 01:36:34 -0600, Willy Jensen <[email protected]> 
wrote:

>if you have trace on anyway, then have a
> ZERRLM=''

No need to clear it when used together with non-zero RC.

>statement after each LMCOPY, it may show additional information.

The OP had an error on LMINIT. The correct method is to use REXX SIGNAL or CALL 
ON ERROR to display ZERRLM and the line in error otherwise you need to add that 
same debug code for every call.

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




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

Reply via email to