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...

Determine the total no of bytes in the following.

01 rec1.
02 a pic x(6)
02 b redefines a.
03 c occus 6 times pic 9.
02 d occurs 6 times pic 9.
03 e pic x(5)
03 f pic 999.

Answer Posted / jayaprabhu

01 rec1.

02 a pic x(6)-------------------- 6 bytes
02 b redefines a.
03 c occurs 6 times pic 9.------ 6*1(pic 9 ie why we
have mul with 1 )------------------- 6 bytes
02 d occurs 6 times pic 9.------- (6*1) 6 bytes
03 e pic x(05)------------------- 5*6 =30 bytes
03 f pic 999. --------------------- 3*6=18

6
6
6
30
18

66

if you remove e f

18

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define static linking and dynamic linking.

1190


Why occurs cannot be used in 01 level in COBOL?

1159


1.give the details about WHEN OTHER. 2. how many form are available in evaluate.

2108


How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?

1205


IF I mention stop run in CICS what happens?

2377


What is the difference between structured cobol programming and object alternativelyiented cobol programming?

1239


What the difference is between continue and next sentence?

1163


What is amode(31)

1172


Why did you choose to work with ibm mainframe cobol programming?

1099


i have 10 names in an array and my name is one of them also array is not in sorted order i need to display my name using index how will i do this

1534


How to traceback if I am getting SOC7 or SOC4 abend? List down the steps

5373


Explain how you can characterize tables in cobol?

1063


How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)

3261


Mention the guidelines to write a structured cobol program?

1094


What is the usage of comp fields in cobol?

1185