define comp?
Answers were Sorted based on User's Feedback
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 |
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 |
01 A PIC 9. 01 B PIC 99V1. 01 C PIC 99. MOVE 1 TO A. MOVE 0.2 TO B. COMPUTE C ROUNDED TO 3/3 + A.
Define redefine and its syntax?
write a cobol program to display prime numbers between 1 to 100?
Explain the input procedure and output procedure?
how array can be declare in cobol?
Explain the difference between section, paragraph and sentences?
How can i change the below code in SQL to cobol/400? EXEC SQL SELECT COUNT(*) INTO : WS-COUNT FROM Db file WHERE Field 1 = : WS-VAR AND Field 2 = : WS-USERID END-EXEC * EVALUATE TRUE WHEN SQLCODE = +000 MOVE WS-COUNT TO Copybook field WHEN SQLCODE = +100 MOVE ZEROES TO Copybook field
what is INPUT PROCEDURE and OUTPUT PROCEDURE?
What are fillers? What is the actual use of fillers? With mall/simple example?
Explain how to detect record is locked in cobol/400? What is the solution for that?
What is sort? And its syntax?
Can we open close file in COBOL any number of times?