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

how do you reference the ksds vsam file formats from cobol programs

1199


What is length is cobol?

1106


What are the access modes of START statement?

1275


What is the difference between PIC 9.99 and 9v99 in COBOL?

1337


If you are current on the owner of a set, what is the difference between an obtain next and obtain first? Actually in which topic will we use dis???Plz explain it clearly

3172


how we sort two input files based on a common column and giving one o/p file please send me the coding logic?

2141


how to convert the recors form vsam file to db2 table tru file aid

3270


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

1506


Which is not true about evaluate statement

2465


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

1412


How to remove the spaces at the end of each record in the output file of variable length, via cobol program?

1176


What is the usage of comp fields in cobol?

1188


what is the use of outrecord?

2223


if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.

6595


i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?

1329