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.

Answer Posted / vijay

05 A PIC S9(4) -> 5 (BY CONSIDERING ONE SIGN BIT)

05 B PIC XXXBXXX -> 7 ( AS YOU ALL KNOWS ABOUT THIS)

05 C PIC ____9.99 -> 4 (SPACE AND 9V99=9(3))I THINK

05 D PIC S9(5) COMP-3 -> 3 ((5/2)+0.5)FOR ODD NUM WE HAVE
CONSIDER ONE 1/2 BYTE ONLY=0.5)

05 E PIC 9(3) COMP -> 2 (9(1) TO 9(4)=HALFWORD=2BYTES)

(9(5) TO 9(9)= WORD= 4 BYTES)
(9(10) TO 9(18)= FULLWORD=8BYTES)

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the different rules for performing sort operation?

761


how do you reference the variable unblock file formats from cobol programs

748


1.Is it possible to move the data from 99.99 to 99v99? 2.What is the CICS-vsam Compilation process? 3.In My GDG 5 generation will be there GDG3 got an abend what will happen? 4.In my GDG first generation is +1 And I want to add the new generation what will happen previous generation? 5.How can you give the PIC clause below conditions A). s9 (reddy), B). s9 (5) occurs 5 times? 6.How override the proc from a particular step? and what is symbolic and override Procs?

5376


What is the use of intialize verb?

747


What happens when we move a comp-3 field to an edited (say z (9). Zz-)?

777






IF I mention stop run in CICS what happens?

1896


How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that

2730


Is it possible that the redefines clause has different picture clauses compared to the one it redefined?

674


What is an in line perform? When would you use it? Anything else you wish to say about it.

644


What guidelines should be followed to write a structured cobol prgm?

673


i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com

1770


How to know whether the module is dynamical or statistical?

653


Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.

2058


What is the difference between perform … with test after and perform … with test before?

881


What is amode(24)?

682