Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 happens when we move a comp-3 field to an edited (say z (9). Zz-)?

1481


Explain how you can characterize tables in cobol?

1114


In COBOL, what is the different between index and subscript?

1280


how do you reference the rrds file formats from cobol programs

1655


There are 5 fields and 1000 records in a file. Unload it into an array. Write the syntax for declaration and how will you unload it.

1499


) How do u handle errors in BMS macro?

2016


Define static linking and dynamic linking.

1270


Explain the configuration section of a cobol program with examples of syntax.

1257


What do you understand by psb and acb?

1178


Discuss about changing dataset name in proc.

1292


Why would you use find and get rather than to obtain?

1261


What rules are to be followed while using the corresponding options?

1125


Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?

1209


What are the different open modes available in cobol?

1243


which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad

1549