01 ws-p pic 9(2).
01 ws-q pic 9(2) value 01.
01 ws-r pic 9(2) value 99.
p.d.
compute p = q + r
what will be result of p ans(00) but my question is that
how i got 10 on the place of 00.
(truncation will ocuure on right side not left).
please tell me ?
Answer Posted / minhaj
p = q+r actuall result is p = 10 but u want p = 10 so we
right the code as p = q+r justified right
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
explain sorting techniques in cobol program?
how do you reference the fixed unblock file formats from cobol programs
What type of SDLC u followed? Why?
In COBOL programming, what is PERFORM? What is VARYING?
How do u write test cases?
Write the code to count the sum of n natural numbers.
Explain how to differentiate call by context by comparing it to other calls?
IF I mention stop run in CICS what happens?
write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc
) how do u code after getting data?
how to move the records from file to array table. give with code example
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
How do you get the data to code the BMS macro?
Write a program that uses move corresponding.
What are the access modes of START statement?