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

can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

1 Answers  


how to submit a jcl by cobol program. clear me with an example.

3 Answers   HCL,


Following questions were asked in Capegemini on 8th sep,2012 mainframe test 1.)Condition code for dul recors in VSAM- 2.) Is NULL or =NULL in Select statement 3.)max size of CI 4.)What happens after CI is full 5.)Ques on COND parameter 6.)which among following can not be rolled back a)delete table b.)droptable c)Update d.)insert 7.)groupby and orderby sql querries 8.)Max extents in VSAM file 9.)quesn on DPRTY=(1,10) 10.)range of condition codes in COBOL 11.)occurs clase can not be used at which level? 12.)delimiter in jcl 13.)sort card for file in PGM=SORT 14.)PIC(6) value 120056 possible? 15)question on BLKSIZE Is (20,20) and (20,10) possible? 16.)number of bytes in RDF 17.)Can we use index in WS-section or LK-section 18.)Verify command in IDCAMS used for? 19.)question on Alternate Index 20.)Return code of file attribute mismatch 21.)In which format COBOL variables stored? 22.)what is Alternate of HANDLE? 23.)can SUM,AVG,MIN,ROUND used in numeric and char variable data types? 24.)What is the datatype of FILE STATUS codes in WS-section?

2 Answers   Cap Gemini,


What are the different data types available in COBOL?

4 Answers  


At the minimum, which division of COBOL is enough to be coded?

3 Answers   CTS,






IF I mention stop run in CICS what happens?

0 Answers   IBM,


HOw can I get the negative sign while deduct high value from low value

0 Answers  


I have a source program compiled with Cobol-2. The output file has a record length of 100 defined in the program but a record of 60 bytes getting written into it. i.e. The rest of 40 bytes I am not Writing anything. But it by default puts some values into the last 40 bytes. However it does not impact anything. But when Compiled the module with Enterprise Cobol the last 40 bytes were spaces as fillers. Can anyone explain?

5 Answers   Cognizant,


What should be the sorting order for SEARCH ALL?

5 Answers  


what is srange and nosrange pls reply to ths question ?

2 Answers   L&T,


How do you define a sort file in JCL that runs the COBOL program?

6 Answers   Syntel,


how we can edit records in vsam data set and non vsam data sets

2 Answers   ACS,


Categories