RPG Arithmetic Operations - Z-SUB (Zero and Subtract)

Description: Zeros the result field and subtracts factor 1 from it (negative move).

Legacy RPG400 Example:

C   Value   Z-SUB  Result
C           Z-SUB  100      Amount 50

Modern RPGLE Example:

dcl-s Amount packed(5:0);

Amount = -100;
{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}
>