ASMPROG START 0
SAVE DS 18F
X DC F'2'
Y DC F'3'
Because you have not coded anything that would put the result on the log. You would need more code to make printable and WTO to output to log.
how can i see the final content of registers and x,y on log?
Again, you would need more code to make these printable and WTO to output to log.
You can see the values in the dump you have produced, assuming you have a SYSUDUMP in JCL.
Find the 'registers at entry' to abend. R2 will have the result of the calculation =6 . R3 will have 2 and R7 will have 3. Calculating the addresses of variables X and Y, you can see that Y has been changed to 6.