study the following
01 A PIC 99V0 VALUE 5
01 B PIC 9V9 VALUE 6
01 C PIC 99V9 VALUE 2.5
01 D PIC 99 VALUE 3
COMPUTE A ROUNDED B C = A+B*C/D
ON SIZE ERROR PERFORM PRINT-ERROR
the comments of A.B.C after execution of the above
statement are
a.A=10 B=0 C=10
b.A=10 B=9.9 C=9.9
c.A=10 B=0 C=9.9
d.A=10 B=6 C=10
Answer Posted / dsfd
a=10,b=6 and c= 10
| Is This Answer Correct ? | 2 Yes | 3 No |
Post New Answer View All Answers
How many bytes S(8) comp field occupy and its maximum value?
example for sub strings ? and refernce modifications whit output pls
IF I mention stop run in CICS what happens?
I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?
What is a report item?
I have File 1 occurs 5 times with Employee-ID,Employee-Name,Employee-Dept (EEE and MECH). I have File 2 occurs 10 times with Employee-ID,Employee-Name,Employee-Dept (EEE,CIVIL,CHEMICAL and MECH). In FIle 1 and FIle 2 , for matching Employee-DEPT (Only MECH) , we need to move entire records from file1 to file 2. We should not use 2D array. Your help is needed here.
How arrays can be defined in COBOL?
What are the different rules to perform a Search?
What is the difference between external and global variables in COBOL?
i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com
) what is the difference between AID and HANDLE AID?
what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.
What guidelines should be followed to write a structured cobol prgm?
What is rmode(24)
Write a program that uses move corresponding.