How do you round the addition or subtraction of two numbers in assembler?
What does the following code do?
AP WKUR,=P5 where WKUR is a label?
Submitted by: AdministratorThis is a vague two-part question.
1) You can round by adding .5
2) Adds 5 to WKUR, but it had better be a valid packed field, and not just a label.
Submitted by: Administrator
1) You can round by adding .5
2) Adds 5 to WKUR, but it had better be a valid packed field, and not just a label.
Submitted by: Administrator
3) Adding 5 only rounds if the precision of the number in WKUR is in the correct UNIT. 1+5 rounds to the 10s postion not the 1s position (assuming no implied decimal point).
Submitted by: Howy61
Submitted by: Howy61
Read Online IBM Assembler Job Interview Questions And Answers
Top IBM Assembler Questions
☺ | How to Pass the parameters from JCL to assembler Pgm? |
☺ | How are data passed from JCL parm to assembler program. And how is data passed from a calling program to an assembler called program? |
☺ | How to pass instream data in sysin with Assembler? |
☺ | Explain ICM instruction? |
Top Mainframe Technical Categories
☺ | IBM MainFrame Interview Questions. |
☺ | IBM AS400 Interview Questions. |
☺ | JCL Interview Questions. |
☺ | IMS DB Interview Questions. |
☺ | CICS Interview Questions. |