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

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

1222


HOw can I get the negative sign while deduct high value from low value

2243


i made it to stage 3 of an interview process wednessday they will quiz my knowledge again face to face for an analyst role recruiter said it will be based on Business requirements system is cobol and good ideas what they might ask etc

2568


can you please let me know if there is any walkins for COBOL/PLI/DB2/IMS/JCL in pune other than IBM and ITC infotech

2418


Name the divisions, which are available in a cobol program?

1216


How to use the same COBOL program in Batch and CICS on lines? explain with an example

2366


What are declaratives and what are their uses in cobol?

1184


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

2655


What is a SSRANGE and NOSSRANGE?

1446


Write some characteristics of cobol as means of business language.

1127


Which division and paragraphs are mandatory for a COBOL program?

1252


can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

2356


State the various causes of s0c1, s0c5 and s0c7.

1061


) How do u handle errors in BMS macro?

1939


What are the access modes of START statement?

1255