what is the difference between Normal vaiable and comp
variable.

Answer Posted / garry

I am not sure about previous explanation, however before that all explanations are valid.

One thing should be clear in our mind that COMP usage is good but it can not be displayed simply, it will store in binary format, so we need to convert it in to ZD, if displaying in SYSOUT or writing to a file.

Please let me know if I am wrong.
Thanks

Garry

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the LINKAGE SECTION used in COBOL?

885


Why is it necessary that file needs to be opened in I-O mode for REWRITE?

745


What is static and dynamic call in cobol?

590


How to traceback if I am getting SOC7 or SOC4 abend? List down the steps

716


Which division and paragraphs are mandatory for a COBOL program?

707






Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?

624


What guidelines should be followed to write a structured cobol prgm?

668


How did the release of cobol/370 version 1.3 improve the performance of release 1.1?

640


I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue

1929


Which Search verb is equivalent to PERFORM…VARYING?

681


Can we redefine the field of x(200) to less than 200?

814


What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?

670


What is the difference between PIC 9.99 and 9v99 in COBOL?

729


What kind of error is trapped by on size error option?

739


Why occurs cannot be used in 01 level in COBOL?

711