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

Write the code to count the sum of n natural numbers.

1211


How do define dynamic array in cobol.

1145


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

1079


I have a File that has duplicate records. I need only those records that occur more than thrice.?

9898


What is link edit in cobol?

1200


write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc

1242


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

1540


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

2216


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

2348


Why would you use find and get rather than to obtain?

1187


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.

6594


Mention the guidelines to write a structured cobol program?

1098


Difference between array and sub-script ?

1669


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

1228


What is the difference between goback, stop run and exit program in cobol?

1593