It will help if you define the operands, e.g.,
divisor   DS CL5
quotient  DS CL5
remainder DS CL5
dividend  EQU quotient

In storage, the remainder follows the quotient.
The first operand (dividend) is quotient+remainder.
The remainder is the same size as the second operand (divisor).
Thus,
  DP  dividend(10),divisor
  ZAP dividend(10),remainder

or somesuch.

----- Original Message ----- From: "Frank M. Ramaekers" <[email protected]>
To: <[email protected]>
Sent: Thursday, January 27, 2022 4:45 AM
Subject: ZAP to expand remainder


Will this instruction work?

        ZAP   WKPACK,WKPACK+(L'WKPACK-L'KDAYSQC)  Expand remainder

In other words, can one expand the remainder from a DP instruction to the 
entire field?

Frank Ramaekers Jr. | Systems Senior Administrator | CIS Mainframe Services.

---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus

Reply via email to