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
Why is it necessary that file needs to be opened in I-O mode for REWRITE?
What are literals?
What is the use of intialize verb?
Which division and paragraphs are mandatory for a COBOL program?
EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?
How many bytes S(8) comp field occupy and its maximum value?
What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?
In COBOL, what is the different between index and subscript?
What is report-item in COBOL?
What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?
How do you code cobol to access a parameter that has been defined in jcl? And do you code the parm parameter on the exec line in jcl?
How do you differentiate between cobol and cobol-ii?
How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)
what is s000 u4087 error? please give the all error codes in cobol,jcl.
What kind of error is trapped by on size error option?