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

consider the following piece of code
01 GROUP-ITEM
05 AMOUNT-1 PIC 99V9 USAGE COMP VALUE 50
05 AMOUNT-2 PIC 9(4)V99 USAGE COMP
MOVE ZERO TO GROUP-ITEM
ADD 50 TO AMOUNT-1
what will be the content of AMOUNT-1?
a.50
b.100
c.0
d.unpredictable

Answer Posted / suresh

hi naveen,

Actually we are moving 0 to group-item so it will become
zero and adding 50 to amount-1. Hence Amount-1 is 50.

please correct me if i am wrong.

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many sections are there in data division in COBOL?

1104


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

1061


Which division and paragraphs are mandatory for a COBOL program?

1221


What are the different rules for performing sort operation?

1172


What are the different open modes available in cobol?

1167


What is the difference between Global and External Variables?

1330


Write down the divisions of cobol program?

1185


What is rmode(24)

1112


Why is it necessary that file needs to be opened in I-O mode for REWRITE?

1284


What is a scope terminator give example?

1072


Can we redefine the field of x(200) to less than 200?

1335


Define static linking and dynamic linking.

1141


how to move the records from file to array table. give with code example

2647


i need a small 3d program using inline and outline.

2182


Explain how to differentiate call by context by comparing it to other calls?

1154