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



01 a pic 9(9v99) 01 b pic 9(9.99) wht will be the stored vales in both cases..

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

01 a pic 9(9v99) 01 b pic 9(9.99) wht will be the stored vales in both cases..

Answer / garry

IL-logical question.

Is This Answer Correct ?    0 Yes 0 No

01 a pic 9(9v99) 01 b pic 9(9.99) wht will be the stored vales in both cases..

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

01 a pic 9(9v99) 01 b pic 9(9.99) wht will be the stored vales in both cases..

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

01 a pic 9(9v99) 01 b pic 9(9.99) wht will be the stored vales in both cases..

Answer / chandrakant sinha

3 and 4

Is This Answer Correct ?    6 Yes 7 No

01 a pic 9(9v99) 01 b pic 9(9.99) wht will be the stored vales in both cases..

Answer / praveen

I also not seen such declation in COBOL.

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More COBOL Interview Questions

How to recover a deleted source physical file from library?

1 Answers   HCL,


We have 3 programms A,B,C.In the middle of the program A the controls goes to program B and in the middle of the program B control wants to go program C,after completion of program C again control comes to program B and again after completion of program B control comes to program A.How the process will takes and what are the controls we use for that process.If it is possible anybody of you explain with example?

5 Answers   IBM,


In CICS/VSAM every file that is accessed should be defined in FCT. we have CICS READ, WRITE, BROWSE commands for VSAM files. How does it work with DB2 tables. It know it has to do with the plan. Please expain with examples.

1 Answers  


WE HAVE 2 FILES IN COBOL. ONE IS FIXED LENGTH RECORDS ANOTHER ONE IS VARIABLE LENGTH. IF I DECLEAR LRECL OF FIXED ONE AS 80 AND 2ND RECORD AS 132. WHAT WE NEED TO DECLEAR LRECL FOR THOSE 2 FILES IN JCL?

4 Answers   iGate,


What is the difference between SEARCH and SEARCH ALL?

6 Answers   Cognizant,






Can we redefine the field of x(200) to less than 200?

0 Answers  


how to check whether the open command of a sequential file is successful? or not?

2 Answers   CSC, IBM,


I have a File that has duplicate records. I need only those records that occur more than thrice.?

3 Answers   IBM, Wipro,


What is the significance of the PROGRAM-ID paragraph? If this name doesnt match with the name of the COBOL program, does it make a difference? Is the name specified in the PROGRAM-ID paragraph used as a name for the load module or any such thing?

4 Answers   IBM,


What are different file OPEN modes available in COBOL?

4 Answers   Sun Life,


Explain about Redefines cluse?

3 Answers   iGate,


Hi all, I have a following requirement to write the cobol program. I have to load the 129 variables from input sequential file which are in excel sheet to the cobol inernal table. and after loading into table i have to compare this data with the business file. here compare means controlling the data whether the format(numeric,alpha) is same in the business file and in the table??? i have the same data in input and business file. could anyone please give me any idea of the logic?// i have all the 129 different variables(129rows,1 column)is there .

4 Answers   IBM, Syntel, TCS,


Categories