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
If you are current on the owner of a set, what is the difference between obtain next and obtain first?
How you can characterize tables in cobol?
What are 77 levels used for?
What is the difference between structured cobol programming and object alternativelyiented cobol?
What is perform what is varying?
i need a small 3d program using inline and outline.
which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad
What is a report item?
What are all the divisions of a COBOL program?
What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?
i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?
How do we get current date from system with century in COBOL?
Write some characteristics of cobol as means of business language.
what is amode(24), amode(31), rmode(24) and rmode(any)?
Name some of the examples of COBOl 11?