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

If i have a variable
A pic 9(2) value 10
Compute A = a - 100

what will be the value of A and will there be any error
becoz of the Negative value

Answer Posted / garry

From above you will get answer as :

90 (without any sign'-').

If you Code S9(02).
Result : 9} (-90)
To get -90 properly, use SIGN is Leading or trailing.

Any difference, please write at : thespider390@hotmail.com

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the different types of condition in cobol and write their forms.

1152


how do you reference the printer file formats from cobol programs

1280


Name the sections present in data division.

1309


What happens when we move a comp-3 field to an edited (say z (9). Zz-)?

1482


How do you differentiate between cobol and cobol-ii?

1281


What is redefines clause in COBOL?

1351


) How do u handle errors in BMS macro

2105


How do you reference the fixed block file formats from cobol programs

1286


Discuss about changing dataset name in proc.

1294


how to access the file from prodution from changeman tool and to submit a file to production

7627


How can i load all the data from a file to Table (array) in cobol.How i manage the occurs clause with out reading the file.Any options avilable ? Please can any one help me it is urgent?

2630


how to convert the recors form vsam file to db2 table tru file aid

3312


In COBOL, what is the different between index and subscript?

1281


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.

6668


I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue

2606