Hi,
I am trying to use the below instruction to initialize one of the packed decimal field during processing inside an assembler program.
ZAP TEMPNUM,ZEROES
where TEMPNUM and ZEROES are declared as below.
TEMPNUM DC PL2'0'
ZEROES DC PL2'0'
TEMPNUM is being used in few calculations in the program but ZEROES remain the same throughout.
However my TEMPNUM is not getting initialised to zeroes on using the ZAP instruction.
I also tried using the SP instruction like below
SP TEMPNUM,TEMPNUM to move zeroes but I can see that TEMPNUM still has some values inside it.
Could you let me know if there is anything missing?
Thank you.
ZAP TEMPNUM,ZEROES
L 6,TEMPNUM
WTO 'DISPLAY5'
DC H'0' ABEND PROGRAM