how to display comp3 variables reply soon ?

Answer Posted / fjord

01 ws-a pic s9(5) comp-3 value 12345.
01 ws-b pic s9(5).

Procedure division.

move ws-a to ws-b
display ws-b upon terminal.

Is This Answer Correct ?    16 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a cobol program making use of the redefine clause.

721


IF I mention stop run in CICS what happens?

1886


I have a File that has duplicate records. I need only those records that occur more than thrice.?

8606


How to use the same COBOL program in Batch and CICS on lines? explain with an example

1909


Explain the configuration section of a cobol program with examples of syntax.

650






How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?

696


Why would you use find and get rather than to obtain?

676


i need a small 3d program using inline and outline.

1629


What is the difference between next sentence and continue in cobol programing language?

700


I have program P1 which calls file F1 which has 100 records and following structure 001 .................. 002 .................. 003 .................. 098 .................... 099 ................... 100 .................... Now I want to read these files and write these records in file F2 in following manner. 001 ...... 051 ..... 002 ...... 052 ..... 003 ...... 053 ..... .......... ....... .......... ....... .......... ....... 048 ........ 098 ...... 049 .......... 099 ....... 050 .... 100 ......

10544


How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?

1918


How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?

697


How do get the result of your program directly on your pc?

1873


What is difference between static and dynamic call in cobol?

766


Define static linking and dynamic linking.

657