01 a pic 9(9v99)
01 b pic 9(9.99)
wht will be the stored vales in both cases
Answers were Sorted based on User's Feedback
Answer / sudhir
r u new to cobol? i have never seen pic 9(9v99).
i dont know how Chandrakant Sinha answered it and how there are 5 votes saying his answer is correct
| Is This Answer Correct ? | 6 Yes | 0 No |
Answer / vinith
@SUDHIR
CHNADRAKANTH SINHA HAS SAID THAT IT WUD USE 3 NYTES AND 4
BYTES OF STORAGE ASSUMING THAT (V) DOESNT TAKE SPACE WHILE
(.) DOES.........AND THAT IS RIGHT
BUT AS U SAID I HAVE NEVER SEEN CODE WITH PIC 9(9V99).THTAS
WRONG
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / venkat
i think question is 01 a pic 9(9)v99 --it's occupy memory space is -11bites
&01 b pic 9(9).99--it's occupy memory space is -12bites
| Is This Answer Correct ? | 1 Yes | 1 No |
I want to declare a field with data type Double in my COBOL program. how shall i do that ?
What is XDC ?
What is report-item?
Differentiate COBOL and COBOL-II?
What rules are followed by the search verb.
01 a pic s9(5) value '-12345' how it will be stored
Can JUSTIFIED be used for all the data types?
RENAME clause takes new SPACE in memory.TRUE or FALSE? a)TRUE 2)FALSE
what r the types of perform statement
How can I find the maximum value of a field in a file while reading the file dynamically? without using sort function. Suppose i have a file with fields Timestamp, description, teamname, teamnumber.. i have read the file till end and find the maximun value of timestamp which is not in sorted order.. can we use function max(timestamp)?
What is an explicit scope terminator?
i need the code for this program in cobol. 2 + 1 = 3 4+3=7 6+5=11 8+7=15 10+9=19