what is the result of the following?
DIVIDE A INTO B GIVING C.
a.C=A/B
b.the reminder of B/A is stored in C
c.C=B/A
d.the reminder of A/B is stored in C
Answer Posted / sunaina
Here in the above formula, we are Dividing the value of B
by A, and storing the value into C.
Ex:
A=10
B=20
then
C= B/A i.e, C= 20/10
the value 2 is stored in C.
So the result is:
C=B/A.
| Is This Answer Correct ? | 17 Yes | 2 No |
Post New Answer View All Answers
Explain how to differentiate call by context by comparing it to other calls?
here is my requirement A1 is alphanumeric with value 'A1B2C3D4' as defined below 05 A1 PIC X(8) VALUE IS 'A1B2C3D4' but i need to have A2,A3 as ABCD & 1234 repectively...... A2 = ABCD A3 = 1234 Can you please explain me what are the different ways to do it?
What guidelines should be followed to write a structured cobol prgm?
For rewrite, why is it mandatory that file needs to be opened?
How can we find that module can be called – whether DYNAMICALLY or STATICALLY?
Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?
Which Search verb is equivalent to PERFORM…VARYING?
How do you define a variable of comp-1 and comp-2?
When is inspect verb is used in cobol?
How did the release of cobol/370 version 1.3 improve the performance of release 1.1?
What is redefines clause in COBOL?
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.
input 1 input2 ouput1 output2 output 3 1 re 300 1 re 200 1 re 300 3 rc 500 1 re 200 2 rr 400 1 re 300 2 rr 400 1 rc 400 3 rc 500 1 rc 400 2 rr 700 2 rr 700 5 tt 900 5 tt 900 2 inputs r in flat file and output 1 is matched records,ouptput2 is unmatched of input1,output3 is unmatched of input2! how vl u get the output files using sequential order and to check with each and every records! let me know the procedure division ?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?
how do you define single dimensional array and multidimensional array in your cobol?