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

I have put two write operations in a single para for two different conditions.Will that lead to an abend or run successfully and write two records?

1 Answers   CTS,


How can you display the SPOOL information ?

2 Answers  


What are the situations u have used in ur project for Subcript and Index ? 1.if u use Subscript why not Index,why u choose Subscript only? 2.if u use Index why not Subscript,what abt Displacement?

2 Answers   Cap Gemini,


Write the code implementing the perform … varying.

0 Answers  


why we are using picture clause in the cobol programs?

2 Answers  






I hv ten records in ps file and i hv say some 15 records in vsam file .i hv empno and age in ps file n empno,empname,dept n desig in vsam file. i hv 2 read the ps file n check wid matching empno in vsam file and then insert all fields from ps and vsam into db2 table....plz help in writin the procedure division

1 Answers  


Extract only those records from a PS file which are having word 'TEXT' in the records using COBOL? The word TEXT is not present in a particular position in all the records.

2 Answers   RBS,


What are the cobol coding sheets?

0 Answers  


please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?

0 Answers   EDS,


WORKING-STORAGE SECTION. 01 A PIC X(3) VALUE 'ABC' 01 B PIC 9(3). PROCEDURE DIVISION. MOVE A TO B. STOP RUN. OUTPUT IS: AB3 WHY AND HOW THIS IS HAPPENING.

4 Answers   Atos Origin,


How do define Dymanic array in cobol how do u define single demensional arry and multidymensional arry in ur cobol.

4 Answers   Cap Gemini,


consider the following piece of code 01 GROUP-ITEM 05 AMOUNT-1 PIC 99V9 USAGE COMP VALUE 50 05 AMOUNT-2 PIC 9(4)V99 USAGE COMP MOVE ZERO TO GROUP-ITEM ADD 50 TO AMOUNT-1 what will be the content of AMOUNT-1? a.50 b.100 c.0 d.unpredictable

10 Answers   TCS,


Categories