how many bytes does s9(15) occupy in comp1 comp2 and comp3 ?

Answers were Sorted based on User's Feedback



how many bytes does s9(15) occupy in comp1 comp2 and comp3 ?..

Answer / rana

COMP1 and COMP2 are the Single precision (Full word - 4
bytes) and Double precision (Double word - 8 bytes)
respectively.
They don't contain the Picture Clause.

COMP-3 will contain 8 Bytes.

Is This Answer Correct ?    30 Yes 4 No

how many bytes does s9(15) occupy in comp1 comp2 and comp3 ?..

Answer / shiva

COMP1-IT OCCUPIES 4 BYTES TO STORE UP TO 18 CHARACTERS
COMP2-IT OCCUPIES 8 BYTE TO STORE UP TO 18 CHARACTERS
COMP3-IT OCCUPIES HALF BYTE FOR EACH CHARACTER AND HALF BYTE
FOR SIGN...FOR ODD DATA LENGTH SO IT OCCUPIES
(15/2=7.5)+(1/2)=7.5+0.5=8 BYTES.

Is This Answer Correct ?    21 Yes 1 No

how many bytes does s9(15) occupy in comp1 comp2 and comp3 ?..

Answer / srinivasa yadav

COMP1 : IT TAKES 4 BYTES OF MEMORY.
COMP2 : IT TAKES 8 BYTES OF MEMORY.
COMP3 : IT TAKES 8 BYTES OF MEMORY.

Is This Answer Correct ?    18 Yes 2 No

how many bytes does s9(15) occupy in comp1 comp2 and comp3 ?..

Answer / raghunathareddy

3bytes

Is This Answer Correct ?    3 Yes 28 No

Post New Answer

More COBOL Interview Questions

Which of the following files can be OPENed in all the 4 modes? The four modes are INPUT, I-O, OUTPUT and EXTEND. (a) INDEXED (b) RELATIVE (c) SEQUENTIAL (d) All of the above

7 Answers   TCS,


How to remove 2 duplicate records and copy only one using job control language?

0 Answers  


What is the difference between a DYNAMIC and STATIC call in COBOL?

2 Answers  


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.

1 Answers   Syntel,


here is my requirement A1 is alphanumeric with value 'A1B2C3D4' as defined below 05 A1 PIC X(8) VALUE IS 'A1B2C3D4' but i need to have A2,A3 as ABCD & 1234 repectively...... A2 = ABCD A3 = 1234 Can you please explain me what are the different ways to do it?

2 Answers   IBM,






wirte a pgm in using files in which we hav 10 ,20,30 40...100 records in inputfile and i want them to be send to outputfile in reverse order. PLZ HELP ME OUT .........THIS IS A RECENT QUESTION IN IGATE..

5 Answers   iGate,


what will happen if i give program name and member name as different? program runs successful or w'll abend?

5 Answers   CTS,


can i use multiple when statements in search & search all ? justify ur answer?

2 Answers  


i have mainprogram and subgram...if i compile mainprogram without stop run..what will u get in compilation time?

1 Answers   HCL,


what is s013u000 for?

1 Answers   Hewitt,


Consider the following: 77 A PIC 9(10) 77 B PIC 9(10) 77 C PIC 9(19) MULTIPLY AB BY B GIVING C Which of the following is true ? (a) The execution of the above may result in size error. (b) The execution of the above will result in size error. (c) The definition of C is invalid resulting in compilation error. (d) No error will be thee and the program would proceed correctly.

4 Answers   TCS,


What are the pertinent COBOL commands?

0 Answers   Satyam,


Categories