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
How you can read the file from bottom?
When is inspect verb is used in cobol?
What is the default value(s) for an initialize? What keyword will allow for an override of the default?
How do define dynamic array in cobol.
What is difference between static and dynamic call in cobol?
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
How to print 10 to 1 if the input have only 10 digit number?
What are the different rules of SORT operation?
Are you comfortable in cobol or jcl?
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.
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...)
What are the pertinent COBOL
What is report-item in COBOL?
HOw can I get the negative sign while deduct high value from low value
What is the usage of comp fields in cobol?