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 / nataraj
q value is 01
r value is 99
after compute p value is 100
normally value is printed left to right so u get 10
place of p
| Is This Answer Correct ? | 0 Yes | 5 No |
Post New Answer View All Answers
What are the different rules for performing sort operation?
How do get the result of your program directly on your pc?
What is link edit in cobol?
Discuss about changing dataset name in proc.
Which is not true about evaluate statement
Is it possible that the redefines clause has different picture clauses compared to the one it redefined?
i want a program using by if, evaluate , string, unstring, perform, occurs?
What is rmode(24)
When is inspect verb is used in cobol?
How can we find that module can be called – whether DYNAMICALLY or STATICALLY?
I have program P1 which calls file F1 which has 100 records and following structure 001 .................. 002 .................. 003 .................. 098 .................... 099 ................... 100 .................... Now I want to read these files and write these records in file F2 in following manner. 001 ...... 051 ..... 002 ...... 052 ..... 003 ...... 053 ..... .......... ....... .......... ....... .......... ....... 048 ........ 098 ...... 049 .......... 099 ....... 050 .... 100 ......
What kind of error is trapped by on size error option?
how to access the file from prodution from changeman tool and to submit a file to production
) How do u handle errors in BMS macro?
What are the different rules of SORT operation?