Nice! They sneak these new instruction in while I'm not looking. <g>

Charles


-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf 
Of Ed Jaffe
Sent: Saturday, April 4, 2020 11:04 AM
To: [email protected]
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...

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

Reply via email to