How many bytes will be allocated for the following record
description
entries?
01 REC-A.
05 A PIC S9(4).
05 B PIC XXXBXXX.
05 C PIC ____9.99.
05 D PIC S9(5) COMP-3.
05 E PIC 9(3) COMP.

Answers were Sorted based on User's Feedback



How many bytes will be allocated for the following record description entries? 01 REC-A. ..

Answer / deepak

A-3
B-7
C-4
D-3
E-2

Is This Answer Correct ?    1 Yes 6 No

How many bytes will be allocated for the following record description entries? 01 REC-A. ..

Answer / suresh kumar

total 19 bytes, For furtyher expansion you can see deepaks
answer.

Is This Answer Correct ?    1 Yes 6 No

How many bytes will be allocated for the following record description entries? 01 REC-A. ..

Answer / asif

05 A PIC S9(4). = 4
05 B PIC XXXBXXX. = 7
05 C PIC ----9.99. = 8
05 D PIC S9(5) COMP-3. = 3
05 E PIC 9(3) COMP. = 2


LENGTH OF REC-A = 24 BYTES.

Is This Answer Correct ?    0 Yes 5 No

How many bytes will be allocated for the following record description entries? 01 REC-A. ..

Answer / guest

Folloiwng will be space allocation:
A - 4
B - 7
C - 8
D - 3
E - 2

Total 24 bytes.

Is This Answer Correct ?    2 Yes 8 No

How many bytes will be allocated for the following record description entries? 01 REC-A. ..

Answer / anil

23 bytes

Is This Answer Correct ?    0 Yes 6 No

How many bytes will be allocated for the following record description entries? 01 REC-A. ..

Answer / guest

correct answer is 25 bytes.. since s9(5) comp-3 will take 4
bytes.. not 3 bytes

A-4
B-7
C-8
D-4
E-2

Is This Answer Correct ?    0 Yes 11 No

Post New Answer

More COBOL Interview Questions

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,


can internal sort be applied to sort ksds files?

1 Answers  


Suppose i have a variable with s9(18)v99 comp3 . what is the size of variable . If s9(18) comp3 is 10 bytes . There should be some difference between two allocations ? Thanks krishna chaitanya

2 Answers   CSC,


hi, can you ppl tell me, how to check whether the rewrite we gave for the ksds file is successful or not in the program.? i gave rewrite, the rewrite code is executing and maxcc=0 but updation doenot happen in the file?

1 Answers   CGI,


which one is the best of com and com-3.using of real time ?

7 Answers   Cap Gemini,






I have a files containing both duplicate and non-duplicate records.The file is already sorted by a key.I want to determine those records that are duplicate and records that are non-duplicate.If duplicate the record is move to a duplicate file and if non-duplicate that will be move to valid file.thank you

1 Answers  


what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.

1 Answers   Syntel,


The disposition parameter in the jcl is share ( DISP+SHR ) and the program opens file in extend mode what will happen?

6 Answers   Cognizant,


input= ,,,, mainframe training ,,, hyderabad .... location.... output1=$ mainframe training in hyderabad location$ output2=**** mainframe training in hyderabad location ****. In this pgn when we give input considering the spaces the output is displayed in this format.Like in the place of ,,,, $ should be displayed likewise.So please helpmeout.

0 Answers  


wht is packed decimal in cobol

2 Answers  


What is the difference between write & move in COBOL?

3 Answers   CSC, HHB,


db2 variable decimal(15,2) what is the equalent size of cobol variable

2 Answers   Syntel,


Categories