01 a pic s9(5) value '-12345' how it will be stored
Answer Posted / nagaraj ramammorthy
here the usage clause is DISPLAY which is default. so each
digit takes one byte to store and the sign is punched with
the last digit..
so it will be stored as 1234N.
note:
numbers punched with '+' sign
0 - {
1 - A
2 - B
3 - C
4 - D
5 - E
6 - F
7 - G
8 - H
9 - I
numbers punched with '-' sign
0 - }
1 - J
2 - K
3 - L
4 - M
5 - N
6 - O
7 - P
8 - Q
9 - R
hope this is clear
| Is This Answer Correct ? | 6 Yes | 1 No |
Post New Answer View All Answers
Write the code implementing the perform … varying.
What the difference is between continue and next sentence?
) how do u code after getting data?
Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc
How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.
)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?
Write a program to explain size error.
How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?
please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?
What is the difference between comp and comp-3?
Difference between array and sub-script ?
Why would you use find and get rather than to obtain?
what are decleratives in cobol?
What is a report item?
Differentiate between structured cobol programming and object-oriented cobol programming.