Consider the following COBOL entries
05 X PIC 99 VALUE 10.
ADD 40 X TO X.
COMPUTE X = 3 * X - 40.
The result in X is
Answers were Sorted based on User's Feedback
Answer / mr.perfect
ADD A B TO C. (Means (A+B)+C moved in C)
ADD 40 X TO X
Value of X is 10
So, ADD 40 10 TO 10 (Gives 40+10+10 = 60)
Now, COMPUTE X = 3 * X - 40
Here , order of preference is - then * will come
so, it will calculate first X-40 = 60-40 =20
THEN, 3*20 == 60
Means X = 3 * 60 - 40 ==20
So answer is : 60
| Is This Answer Correct ? | 0 Yes | 2 No |
i declare a Table as OCCURS 2000 TIMES.If the input file has more than 2000 records will the COBOL program fail?
Name the sections present in data division.
Why would you use find and get rather than to obtain?
Why we need to use redefine clause when we can define the variable seperately... what is actual need....
Whats the difference between search & search ALL?
how to check whether the open command of a sequential file is successful? or not?
can any one give good example for cond 88 level number and for renames pls urgent dudes ?
i friends greetings to the day...!!! I face a quation like"while runnig the programe every day i have to access the previous day updates only...!! Ex:- Let last day 100 customers took bank account i have to select those customers only.."
What are the different data types available in COBOL?
What is report-item?
plz,could any one tell me? what about EBCDIC in cobol?briefly?
is it possible to pass an SQL query inside a jcl which is inside a cobol program?