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

System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..

2022


Difference between array and sub-script ?

1613


What are the pertinent COBOL commands?

3110


Is it possible that the redefines clause has different picture clauses compared to the one it redefined?

1114


Write a program that uses move corresponding.

1084


what is s000 u4087 error? please give the all error codes in cobol,jcl.

17807


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.

6472


Can we change the password using ALTER? anyone tried and changed?

1962


how do you reference the esds vsam file formats from cobol programs

1138


How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.

4124


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?

2539


Differentiate between structured cobol programming and object-oriented cobol programming.

1092


Why is it necessary that file needs to be opened in I-O mode for REWRITE?

1272


What is Pic 9v99 Indicates in COBOL?

1192


i have 10 names in an array and my name is one of them also array is not in sorted order i need to display my name using index how will i do this

1481