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

What are the access modes of START statement?

1271


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

1138


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

1241


What is the Purpose of POINTER Phrase in STRING command in COBOL?

1252


what is search and searchall?what is the diffrence between them?give an best example?

6822


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

2375


Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?

1353


What are the different rules for performing sort operation?

1224


) how do u code after getting data?

2150


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

1293


Write a program to explain size error.

1199


What is comp-1 and comp-2?

1230


What are the cobol coding sheets?

1265


What is a scope terminator give example?

1109


What is the difference between perform … with test after and perform … with test before?

1439