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 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..
What is Control Break processing ?
input= ,,,, mainframe training ,,, hyderabad .... location.... output1=$ mainframe training in hyderabad location$ output2=**** mainframe training in hyderabad location ****. In this pgn when we give input considering the spaces the output is displayed in this format.Like in the place of ,,,, $ should be displayed likewise.So please helpmeout.
I have one column say 'X' defined as VARCHAR Can anyone tell me What are the different ways to update this column thru COBOL-DB2 program?
What is wrong with the following data declaration? 01 W-DATE PIC X(6). 05 DD PIC 99. 05 MM PIC 99. 05 YY PIC 99. (a) Nothing is wrong. (b) Under W-DATE all level 05 items are having a PIC 99 but level 01 has PIC X(6). (c) PIC can't be specified for a group item. (d) DD, MM, and YY are invalid datanames.
what is linkcard in cobol?
What is the difference between a binary search and a sequential search?
wht is the difference between goto and perform stmts
what is the coding difference between COBOL and CICS.
What is the difference between SEARCH and SEARCH ALL?
Explain the configuration section of a cobol program with examples of syntax.
Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning