define comp?

Answers were Sorted based on User's Feedback



define comp?..

Answer / syam

"COMP" in Cobol = Binary storage format(if -ve bit is ON,
if +ve bit is OFF)
COMP-1 = Single precision floating point. Uses 4 bytes.
COMP-2 = Double precision floating point. Uses 8 bytes.
COMP-3 = packed decimal format. Uses 4 bytes.


Example 01 WS-VAR USAGE COMP-1.

Is This Answer Correct ?    3 Yes 0 No

define comp?..

Answer / syam

COMP = Compare in RPG, to compare two fields value.

AA = 01
BB = 02


C AA COMP 01 99 (found)
C BB COMP AA 99 (not found)

99 = on not found
99 = off found



Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More COBOL400 Interview Questions

Can we open close file in COBOL any number of times?

2 Answers   Kanbay,


what is PERFORM? and its types?

7 Answers  


WHAT ALL THE CONDITIONES REQUIRED FOR USING OPEN OPCODE ON A FILE?

2 Answers  


It's possible use %TRIM statement like rpgile?

2 Answers  


Define perform? And its types?

0 Answers  






What is the syntax of sort?

0 Answers  


What is input procedure?

0 Answers  


Explain how to detect record is locked in cobol/400? What is the solution for that?

0 Answers  


what is the difference between section,paragraph and sentences

4 Answers  


Explain the types of perform?

0 Answers  


What is the syntax of redefine?

0 Answers  


why icetool be used in programmer view?

0 Answers  


Categories