Thank you. This looks like just what I needed. Appreciate the assistance. Thanks
.......Cameron From: IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU> On Behalf Of Seymour J Metz Sent: Tuesday, January 17, 2023 3:03 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: [External] Re: REXX Question Did you try CONTROL ERRORS RETURN? ________________________________________ From: IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU<mailto:IBM-MAIN@LISTSERV.UA.EDU>> on behalf of Cameron Conacher <000003cfc59146bb-dmarc-requ...@listserv.ua.edu<mailto:000003cfc59146bb-dmarc-requ...@listserv.ua.edu>> Sent: Tuesday, January 17, 2023 2:48 PM To: IBM-MAIN@LISTSERV.UA.EDU<mailto:IBM-MAIN@LISTSERV.UA.EDU> Subject: REXX Question Hello folks, I hope this is not a silly question. I have some REXX statements that use LMCOPY to copy members from one library to another. This is pretty straight forward stuff. Recently, I ran into a situation where I was not authorized to access the output library. And when the REXX ran, it ABENDed with a 913 error message. My REXX checks the return code value from the LMCOPY, but apparently, the LMCOPY does not return. I can't seem to trap the not authorized error, and generate a polite message for the JOB. After issuing the LMCOPY command, I check, and if the return code is not one of 0, 8, or 12 I generate an error message. On the other hand if it is zero I generate a success message if it is 8 I generate a success message if it is 12 I generate a message indicating I did not replace the member in the target library because the member already existed and the REPLACE flag was not set. The other return codes documented for LMCOPY are 16 = TRUNCATION Error 20 = Sever Error; unable to continue. I was kind of expecting to see the LMCOPY return set as 20. Is there something I can set to trap the 913 (Not Authorized error) ? I can live with what I have. I was just looking to polish things up a little bit. I wanted to send out a message that literally says "You do not have the authority to access Library ..... Please reach out to the Security team at... and have them authorize your RACF ID. Then restart this JOB at step.... If you have additional questions, please see ....." Or know that it is just not possible/reasonable to attempt to trap the error. Thanks Cameron Conacher Senior Engineer American Express Canada Inc. GCICS 2225 Sheppard Avenue East, Toronto, ON M2J 5C2 cameron.conac...@aexp.com<mailto:cameron.conac...@aexp.com><mailto:cameron.conac...@aexp.com<mailto:cameron.conac...@aexp.com>> Office: 1-437-836-5265 Mobile: 1-416-409-5147 https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Famex.webex.com%2Fjoin%2Fcameron.conacher&data=05%7C01%7Csmetz3%40gmu.edu%7Cde15c95b27b348cba8be08daf8c3cea0%7C9e857255df574c47a0c00546460380cb%7C0%7C0%7C638095817113716787%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=hBFyD3LJjmBm%2FnJeRGRL7Y9iArO12Q6WrKOHWQAA%2BtY%3D&reserved=0<https://isolate.menlosecurity.com/1/3735928037/https:/nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Famex.webex.com%2Fjoin%2Fcameron.conacher&data=05%7C01%7Csmetz3%40gmu.edu%7Cde15c95b27b348cba8be08daf8c3cea0%7C9e857255df574c47a0c00546460380cb%7C0%7C0%7C638095817113716787%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=hBFyD3LJjmBm%2FnJeRGRL7Y9iArO12Q6WrKOHWQAA%2BtY%3D&reserved=0> ________________________________ American Express made the following annotations ________________________________ This e-mail was sent to you by a representative of Amex Bank of Canada, P.O. Box 3204, Station "F", Toronto, ON, M1W 3W7, http://secure-web.cisco.com/1ZxhzI5uLo43smfRqmfJL3HBskUBpKOJa3Qcn2n9RumUh1HClQH2zfhZx_LVjPxydiGXOs0mNI3vZlAPeG3_jtkfz7djJuLX8HHU-GxXIHOuJ57gnTs6yn9rscZDqaZgXGRAuyYgIpQpzHGb-OOESPjhd92iW6ZNl1CyU9OxYwees8Py00f1KtTVokIqV1I79xORACPu6MpguSlk57x9qHa4Ckf8sPA5SaFyS6kId6bYuYoHfZKuyI5Bu4ArJIBhavhRi_tIcvkpmdxol6rdkrFpI8Nh8FR8MDWQgppxBp7o-QecTui2QHAO6xUI-SdnOYPq_aV5_UNfV-bTyzifWlbiXrCAqkwKonT50TQnk3A7DNWMp0S9WjCmBC0QtO6Wnz1ufJK93XZIP91TfW9plDqdq3t5VkIH0d8dwgWT3KqAWoCZCFVN9611_hBhx-ktv/http%3A%2F%2Fwww.americanexpress.ca<https://isolate.menlosecurity.com/1/3735928037/http:/secure-web.cisco.com/1ZxhzI5uLo43smfRqmfJL3HBskUBpKOJa3Qcn2n9RumUh1HClQH2zfhZx_LVjPxydiGXOs0mNI3vZlAPeG3_jtkfz7djJuLX8HHU-GxXIHOuJ57gnTs6yn9rscZDqaZgXGRAuyYgIpQpzHGb-OOESPjhd92iW6ZNl1CyU9OxYwees8Py00f1KtTVokIqV1I79xORACPu6MpguSlk57x9qHa4Ckf8sPA5SaFyS6kId6bYuYoHfZKuyI5Bu4ArJIBhavhRi_tIcvkpmdxol6rdkrFpI8Nh8FR8MDWQgppxBp7o-QecTui2QHAO6xUI-SdnOYPq_aV5_UNfV-bTyzifWlbiXrCAqkwKonT50TQnk3A7DNWMp0S9WjCmBC0QtO6Wnz1ufJK93XZIP91TfW9plDqdq3t5VkIH0d8dwgWT3KqAWoCZCFVN9611_hBhx-ktv/http%3A%2F%2Fwww.americanexpress.ca> If you no longer wish to receive these e-mails, please notify the sender by reply e-mail. This e-mail is solely for the intended recipient and may contain confidential or privileged information. If you are not the intended recipient, any disclosure, copying, use, or distribution of the information included in this e-mail is prohibited. If you have received this e-mail in error, please notify the sender by reply e-mail and immediately and permanently delete this e-mail and any attachments. Thank you. American Express a fait les remarques suivantes Ce courriel vous a ?t? envoy? par un repr?sentant de la Banque Amex du Canada, C.P. 3204, succursale F, Toronto (Ontario) M1W 3W7, http://secure-web.cisco.com/1ZxhzI5uLo43smfRqmfJL3HBskUBpKOJa3Qcn2n9RumUh1HClQH2zfhZx_LVjPxydiGXOs0mNI3vZlAPeG3_jtkfz7djJuLX8HHU-GxXIHOuJ57gnTs6yn9rscZDqaZgXGRAuyYgIpQpzHGb-OOESPjhd92iW6ZNl1CyU9OxYwees8Py00f1KtTVokIqV1I79xORACPu6MpguSlk57x9qHa4Ckf8sPA5SaFyS6kId6bYuYoHfZKuyI5Bu4ArJIBhavhRi_tIcvkpmdxol6rdkrFpI8Nh8FR8MDWQgppxBp7o-QecTui2QHAO6xUI-SdnOYPq_aV5_UNfV-bTyzifWlbiXrCAqkwKonT50TQnk3A7DNWMp0S9WjCmBC0QtO6Wnz1ufJK93XZIP91TfW9plDqdq3t5VkIH0d8dwgWT3KqAWoCZCFVN9611_hBhx-ktv/http%3A%2F%2Fwww.americanexpress.ca<https://isolate.menlosecurity.com/1/3735928037/http:/secure-web.cisco.com/1ZxhzI5uLo43smfRqmfJL3HBskUBpKOJa3Qcn2n9RumUh1HClQH2zfhZx_LVjPxydiGXOs0mNI3vZlAPeG3_jtkfz7djJuLX8HHU-GxXIHOuJ57gnTs6yn9rscZDqaZgXGRAuyYgIpQpzHGb-OOESPjhd92iW6ZNl1CyU9OxYwees8Py00f1KtTVokIqV1I79xORACPu6MpguSlk57x9qHa4Ckf8sPA5SaFyS6kId6bYuYoHfZKuyI5Bu4ArJIBhavhRi_tIcvkpmdxol6rdkrFpI8Nh8FR8MDWQgppxBp7o-QecTui2QHAO6xUI-SdnOYPq_aV5_UNfV-bTyzifWlbiXrCAqkwKonT50TQnk3A7DNWMp0S9WjCmBC0QtO6Wnz1ufJK93XZIP91TfW9plDqdq3t5VkIH0d8dwgWT3KqAWoCZCFVN9611_hBhx-ktv/http%3A%2F%2Fwww.americanexpress.ca> Si, par la suite, vous ne souhaitez plus recevoir ces courriels, veuillez en aviser les exp?diteurs par courriel. Ce courriel est r?serv? au seul destinataire indiqu? et peut renfermer des renseignements confidentiels et privil?gi?s. Si vous n'?tes pas le destinataire pr?vu, toute divulgation, duplication, utilisation ou distribution du courriel est interdite. Si vous avez re?u ce courriel par erreur, veuillez en aviser l'exp?diteur par courriel et d?truire imm?diatement le courriel et toute pi?ce jointe. Merci. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu<mailto:lists...@listserv.ua.edu> with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu<mailto:lists...@listserv.ua.edu> with the message: INFO IBM-MAIN ________________________________ American Express made the following annotations ________________________________ This e-mail was sent to you by a representative of Amex Bank of Canada, P.O. Box 3204, Station "F", Toronto, ON, M1W 3W7, www.americanexpress.ca. If you no longer wish to receive these e-mails, please notify the sender by reply e-mail. This e-mail is solely for the intended recipient and may contain confidential or privileged information. If you are not the intended recipient, any disclosure, copying, use, or distribution of the information included in this e-mail is prohibited. If you have received this e-mail in error, please notify the sender by reply e-mail and immediately and permanently delete this e-mail and any attachments. Thank you. American Express a fait les remarques suivantes Ce courriel vous a ?t? envoy? par un repr?sentant de la Banque Amex du Canada, C.P. 3204, succursale F, Toronto (Ontario) M1W 3W7, www.americanexpress.ca. Si, par la suite, vous ne souhaitez plus recevoir ces courriels, veuillez en aviser les exp?diteurs par courriel. Ce courriel est r?serv? au seul destinataire indiqu? et peut renfermer des renseignements confidentiels et privil?gi?s. Si vous n'?tes pas le destinataire pr?vu, toute divulgation, duplication, utilisation ou distribution du courriel est interdite. Si vous avez re?u ce courriel par erreur, veuillez en aviser l'exp?diteur par courriel et d?truire imm?diatement le courriel et toute pi?ce jointe. Merci. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN