> Either way, the issues remains - what will you do if the post fails? Attempt to record the error for an independent process that will ultimately log it.
Seriously, it's good point, and true for all software recovery: "you're already hosed up and in some unknown situation that you did not anticipate -- so now what do you do?" But you can't just ignore errors. Charles -----Original Message----- From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf Of Binyamin Dissen Sent: Wednesday, October 10, 2018 1:48 AM To: [email protected] Subject: Re: Cross-memory POST ERRET and return codes On Mon, 8 Oct 2018 15:40:40 -0700 Charles Mills <[email protected]> wrote: :>Pursuant to a recent thread here I am converting a cross-memory POST to use :>IEAMSXMP instead. However ... I still need to support older systems without :>IEAMSXMP support, so I will be dual-pathing the existing POST. I got to :>looking at code that I have not examined in several years, and I am trying :>to determine exactly what is or should be going on. It runs without apparent :>errors, so this is kind of a theoretical question, not "please help me with :>this error." Here's the POST :>POST (R3),LINKAGE=BRANCH,ASCB=(R2),ERRET=POSTERR,MEMREL=NO :>The questions are these :>- Given that code, will POSTERR indeed get control on an error? :>- The POST documentation documents two error codes, 4 and 8. Will they get :>passed to POSTERR? Where? :>Yes, I have RTFM but the FM is showing the effects of years of somewhat :>piecemeal revisions. I have never truly coded a post error routine (always use CVTBRET). Consider what must be done if a POST failed, which requires determining the reasons why the POST failed. In the vast majority of cases I would be running primary=target and will attempt a quick post first. 1. The target memory terminated Nothing to do. The RESMGR routines will clean it up. 2. The address is invalid or in the wrong key The quickpost will catch it. Also, one must consider the case which posterr will not catch, that is the storage is reallocated. Either way, the issues remains - what will you do if the post fails? ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
