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

01 ws-p pic 9(2).
01 ws-q pic 9(2) value 01.
01 ws-r pic 9(2) value 99.

p.d.

compute p = q + r
what will be result of p ans(00) but my question is that

how i got 10 on the place of 00.
(truncation will ocuure on right side not left).

please tell me ?


Answer Posted / jayaprabhu

simple always remember that for numeric it's Left
Justification ie TAKE FROM LEFT PLACE FIRST IN LEFT

SO P=100 but as per you it shd be 00 but it will be 10

1 IS FROM LEFT SIDE MOST THEN 00 so if we move as per above
then
p is pic9(02)

so 10 first 1 is moved from left to left then 0 is moved
but since pic 9(02) only to digits get moved

Is This Answer Correct ?    0 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

2062


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

1470


What is the LINKAGE SECTION used in COBOL?

1470


What type of SDLC u followed? Why?

1962


example for sub strings ? and refernce modifications whit output pls

2269


What is cobol?

1196


What is link edit in cobol?

1153


how do you reference the printer file formats from cobol programs

1143


What is the difference between a binary search and a sequential search what are the pertinent cobol?

1095


What is an in line perform? When would you use it? Anything else you wish to say about it.

1022


If you are current on the owner of a set, what is the difference between obtain next and obtain first?

1232


What is the difference between next sentence and continue in cobol programing language?

1163


What is the utilization of copybook in cobol?

1117


How do get the result of your program directly on your pc?

2297


please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?

2408