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
What do you understand by psb and acb?
Give some examples of command terminators?
How are the next sentence and continue different from each other?
How to know whether the module is dynamical or statistical?
EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?
What are the different data types in cobol?
What is cobol?
What is a report item?
State the various causes of s0c1, s0c5 and s0c7.
How to use the same COBOL program in Batch and CICS on lines? explain with an example
What happens when we move a comp-3 field to an edited (say z (9). Zz-)?
What is the difference between binary search and sequential search?
What are the different rules of SORT operation?
which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad
What is perform what is varying?