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 a pic s9(5) value -12345,
if we disply a , the sign will overpunched with last digit
but i need to get the miuns sign in the result?

Answer Posted / david

you will need two variables. Variable A where you put your
computation and variable B which will be displayed:

01 a pic s9(5) value -12345.
01 b pic -9(5).
or 01 b pic -zzzz9.
or 01 b pic 99999-.
or 01 b pic z(5)-.
or 01 b pic ----9.

MOVE A TO B.
DISPLAY B.

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?

1188


How are the next sentence and continue different from each other?

1227


what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.

9021


How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?

1094


What is Pic 9v99 Indicates in COBOL?

1179


How to print 10 to 1 if the input have only 10 digit number?

1220


How to know whether the module is dynamical or statistical?

1083


In COBOL programming, what is PERFORM? What is VARYING?

1089


What the difference is between continue and next sentence?

1106


What is the difference between comp and comp-3 usage?

1132


What is cobol?

1196


What is rmode(24)

1100


) How do u handle errors in BMS macro

1960


What are different data types in cobol?

1231


What is the problem of ordered sequential files access?

1111