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 / sachin borase

yes answer will be 50.

But if you initialize instead of move zeros then
value will be 100.

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

3172


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

2167


What is the difference between PIC 9.99 and PIC9v99?

1280


What are all the divisions of a COBOL program?

1147


For rewrite, why is it mandatory that file needs to be opened?

1063


What is the usage of comp fields in cobol?

1130


What are 77 levels used for?

1052


What is length is cobol?

1059


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

1124


what is difference between cobol and cobol/400

22734


What is the use of intialize verb?

1180


How arrays can be defined in COBOL?

1136


Why occurs cannot be used in 01 level in COBOL?

1123


Are you comfortable in cobol or jcl?

988


How you can read the file from bottom?

1084