If I expected a lot of bad data, I might use TP. But if I expected them to be rare, I'd probably set an (E)SPIE.
-- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 ________________________________________ From: IBM Mainframe Discussion List [IBM-MAIN@LISTSERV.UA.EDU] on behalf of Ed Jaffe [edja...@phoenixsoftware.com] Sent: Saturday, April 4, 2020 2:03 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: ESPIE question (does ESPIE "cover" ATTACH'd sub-tasks) On 4/4/2020 10:29 AM, Charles Mills wrote: > Let's say you were writing a report generator. You are processing data of > unknown quality using field definitions generated by inexperienced > programmers, and report programs written by non-programmers. You might > expect a fair number of arithmetic operations on packed fields that > contained invalid data, and a fair number of divisions by zero. Let's posit > that ABENDing on the first such condition is not acceptable to user > management. > > Would you use ESPIE to trap S0C7's and S0C9's, or would you validate the > data with explicit "hand-coded" tests before every arithmetic operation? The TP (TEST DECIMAL) instruction comes in handy here... -- Phoenix Software International Edward E. Jaffe 831 Parkview Drive North El Segundo, CA 90245 https://secure-web.cisco.com/1NRbNP_JrO-xHMrX9Mrw7tfJ8bTGmmjYKPM3g_K-TiLsrdwv2kf1FbFJ06L7ka2s1htiB1KLDYMTkGfvutXeGYBrfOyAVDlpNbNtDEonI5jiOs1OItzpPvDiNaDdf1lrNe1EpNXAiHA5FGjLkG55EUQK7zZwblzpj1FK49AoTCcWZnmvFALMwsYe4FDx_ocuU4dS4Kag1Aiez5yBBXVJIAkBFHSYTHkj-5FELNuNLKLEMQs6-2ohseVJtUFLwEj-lSseX5NTto87TojlCMdzCXvvUVCpPMiiKmvG-rIz8UxgH5_Znn6skIHuU5zKNb9JLGo6FlWlfdiM9K7KamIafakSib8C7Lh8rM-gjvmw7HeEygUzYZ5Dr-8YtFiqL5yEDOmVuqd7g83xYNy7g9d8nmuStSig3aArIkcZTVLYcfVO9jIHS68_qlcxUK8jhTpvY/https%3A%2F%2Fwww.phoenixsoftware.com%2F -------------------------------------------------------------------------------- This e-mail message, including any attachments, appended messages and the information contained therein, is for the sole use of the intended recipient(s). If you are not an intended recipient or have otherwise received this email message in error, any use, dissemination, distribution, review, storage or copying of this e-mail message and the information contained therein is strictly prohibited. If you are not an intended recipient, please contact the sender by reply e-mail and destroy all copies of this email message and do not otherwise utilize or retain this email message or any or all of the information contained therein. Although this email message and any attachments or appended messages are believed to be free of any virus or other defect that might affect any computer system into which it is received and opened, it is the responsibility of the recipient to ensure that it is virus free and no responsibility is accepted by the sender for any loss or damage arising in any way from its opening or use. ---------------------------------------------------------------------- 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