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 |
What is a subscript ?
I have a Main Program which is calling Sub-Program which is a DB2 pgm. What will happen if I am not closing the cursor used in the Sub-program? Please advise..
how we rectify soc7 and soc4 errors in project?
How to retrive the 9th records out of ten records using the cobol program ?
Which of the following characters is NOT valid in column 7? a. - b. \ c. * d. # e. $
In my table having 3000 Records. How can I delete the 500th row? (we don't know what is data inside the table)
What is LENGTH in COBOL II?
A LESS 1200 IF B GREATER 25 MOVE 47 TOC ELSE MOVE 57 TO C IF A GREATER 249 MOVE 67 TO C ELSE NEXT SENTENCE ELSE IF B LESS 67 MOVE 27 TO C What will be the value of C, when A is 137 and b is 25
what is the purpose of linkage section?
when COMP-3 is preferrable?
I have a sequential file of 100 records. How do I load the records into a two dimensional array ?
a. Can the OPTIONAL clause in COBOL only be coded for input files? b. If it is coded for files opened in OUTPUT, I-O or EXTEND mode, will it give a compilation error? c. If there are no compilation errors and if such files are not coded in the JCL, will the OPEN statement run fine when these files are opened? d. How will a WRITE statement work for the above files?