Have you looked at ZERRMSG, ZERRSM, and ZERRL?
-- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 ________________________________________ From: IBM Mainframe Discussion List [IBM-MAIN@LISTSERV.UA.EDU] on behalf of Weizman arbel [wwar...@gmail.com] Sent: Thursday, May 11, 2023 1:23 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: ispf , way to achieve the last ispf msgid from rexx Hello , from rexx Which command / way to achieve the last ispf msgid example: The result of the command msgid ' The message ID of the last message was "ISRE017 " ' I would like to achieve the "ISRE017" from rexx thanks, weizman ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to 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 with the message: INFO IBM-MAIN