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
Name the sections present in data division.
What is the problem of ordered sequential files access?
What is the difference between next sentence and continue in cobol programing language?
Write a cobol program making use of the redefine clause.
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?
how to refer the data field?
Explain the configuration section of a cobol program with examples of syntax.
What is a SSRANGE and NOSSRANGE?
What are the cobol coding sheets?
How you can characterize tables in cobol?
I have File 1 occurs 5 times with Employee-ID,Employee-Name,Employee-Dept (EEE and MECH). I have File 2 occurs 10 times with Employee-ID,Employee-Name,Employee-Dept (EEE,CIVIL,CHEMICAL and MECH). In FIle 1 and FIle 2 , for matching Employee-DEPT (Only MECH) , we need to move entire records from file1 to file 2. We should not use 2D array. Your help is needed here.
what is difference between cobol and cobol/400
Write a program to enter and display the names of students in a class using the occurs clause.
i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com
Differentiate between structured cobol programming and object-oriented cobol programming.