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

can we display comp-3 variables. if we want to display what
we have to do . give me one example

Answer Posted / vivekananda

We can't display COMP-3 directly so we have to move the value into another variable, check this given example.

01 A1 PIC S9(4) COMP-3 VALUE 1234.
01 A1-NUM PIC S9(4) VALUE ZEROES.
01 B1 PIC X(4).

MOVE A1 TO A1-NUM.
MOVE A1-NUM TO B1.
DISPLAY B1.

Is This Answer Correct ?    25 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How you can read the file from bottom?

1189


When is inspect verb is used in cobol?

1304


What is the default value(s) for an initialize? What keyword will allow for an override of the default?

1160


How do define dynamic array in cobol.

1182


What is difference between static and dynamic call in cobol?

1458


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

1289


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

1304


What are the different rules of SORT operation?

1198


Are you comfortable in cobol or jcl?

1088


Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.

2471


how can we apply for HSBC exam(Mainframe) in India??? i went to their site and was told to submit my CV ,. etc..( totally confusing...)

2441


What are the pertinent COBOL

2619


What is report-item in COBOL?

1193


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

2297


What is the usage of comp fields in cobol?

1222