how many bytes does a s9(12)COMP-4 field occupy??
a.2
b.4
c.8
d.1
ans with reason please

Answers were Sorted based on User's Feedback



how many bytes does a s9(12)COMP-4 field occupy?? a.2 b.4 c.8 d.1 ans with reason please ..

Answer / raja

Its occupies 8 bytes, because comp-4 is equalent to comp.

Is This Answer Correct ?    6 Yes 0 No

how many bytes does a s9(12)COMP-4 field occupy?? a.2 b.4 c.8 d.1 ans with reason please ..

Answer / sharpmainframe

IT WILL BE 6 BECAUSE COMOP-4 OCCUPIED HALFBYTE.

Is This Answer Correct ?    1 Yes 4 No

Post New Answer

More COBOL Interview Questions

What will happen if we generate GDG +2 version instead of +1 version?

2 Answers   T systems,


What are INPUT PROCEDURE and OUTPUT PROCEDURE?

0 Answers  


CAN ANY ONE HELP WHAT IS QTP? why it is nessery AND WEN IT IS USED?

1 Answers  


i have a sequencial file contains multiple records, i want to extract one row which contains various fields like order number,date,warehouse,.ect.. in to the another file by accepting the order number from jcl. how can i do it. pls help me..

4 Answers   CGI,


What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?

0 Answers  






Size of a column has been changed in DB2 table (Suppose it was of 5 characters and later changed to 4 characters) and forgot to change the DCLGEN in COBOL program, what will happen during the execution of code? If the program Abends then what will be the error? If it doesn't abend then hpw the error can be catched?

5 Answers   IBM,


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,


Q:what is the difference between the variable length and fixed lenght.how it varies in the cobol.

12 Answers   CTS, Wipro,


a. Can the OPTIONAL clause in COBOL only be coded for input files? b. If it is coded for files opened in OUTPUT, I-O or EXTEND mode, will it give a compilation error? c. If there are no compilation errors and if such files are not coded in the JCL, will the OPEN statement run fine when these files are opened? d. How will a WRITE statement work for the above files?

2 Answers  


can we redefine 77 level item is it possible

4 Answers   HCL,


What is the linkage section?

4 Answers  


01 a pic s9(5) occupies how many bytes ?

9 Answers   Wipro,


Categories