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 |
tell me about examine inspect and evaluate ?
In an array processing what is the thing that can be done by using subscripts but not by using index
how many subpgms we can use in a main pgm ? how do u link sub pgm to main pgm ? how can i use the parameters declared in main pgm to sub pgm ?
How can we find out wether to declare the data items like Integer, Char,Comp? If comp types how can we decide wether it is Comp and Comp3.How it is? Please Explain... Cheers.
I have a source program compiled with Cobol-2. The output file has a record length of 100 defined in the program but a record of 60 bytes getting written into it. i.e. The rest of 40 bytes I am not Writing anything. But it by default puts some values into the last 40 bytes. However it does not impact anything. But when Compiled the module with Enterprise Cobol the last 40 bytes were spaces as fillers. Can anyone explain?
how we can reverse the string in the cobol for example satheesh can be reveresed as hseehtas
how do u list the abended jobs?
How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?
Write down the divisions of cobol program?
why we are using picture clause in the cobol programs?
i have n records in one file and in this file there is some fields and i want to count that how many sharma in my file so plz give the coding that how we read sharma ?
how to move the records from file to array table. give with code example