How do you define a variable of COMP-1? COMP-2?

Answers were Sorted based on User's Feedback



How do you define a variable of COMP-1? COMP-2?..

Answer / pal

77 A COMP-1.
77 B COMP-2.

because we can't use PIC clause in comp-1 & comp-2

Is This Answer Correct ?    42 Yes 8 No

How do you define a variable of COMP-1? COMP-2?..

Answer / paddu

01 a usage comp-1.
01 b usage cpmp-2.
this way to define

Is This Answer Correct ?    12 Yes 1 No

How do you define a variable of COMP-1? COMP-2?..

Answer / vampire

01 a comp-1
01 b comp-2

Is This Answer Correct ?    9 Yes 4 No

Post New Answer

More COBOL Interview Questions

IDENTIFICATION DIVISION. PROGRAM-ID. MOVEPGM. DATA DIVISION. WORKING-STORAGE SECTION. 01 WS-I PIC 9(2). PROCEDURE DIVISION. A1000-MAIN-PARA. PERFORM PARA-X WITH TEST BEFORE UNTIL WS-I= 5 STOP RUN. PARA-X. DISPLAY "BEST2". I m getting error s722,while executing the program, seems getting in loop, can anybody tell me why

3 Answers  


Discuss about changing dataset name in proc.

0 Answers  


What is the Purpose of Pointer in the string?

0 Answers  


what is the advantage of sync class

3 Answers   ACS,


I have a COBOL main program which is calling sub program, the number of calling parameters used in main program are 4 whereas in sub program it's 5. Sub program is passing 5 parameters back to main program Will there be any compilation error? Or main program parameters displays junk values?

1 Answers  






How do you submit JCL via a Cobol program?

5 Answers   IBM,


Can we move X(9) to 9(9). If yes what are the ways for doing this?

3 Answers  


What will happen if you code GO BACK instead of STOP RUN in a stand-alone COBOL program i.e. a program which is not calling any other program ?

3 Answers  


Difference between file status codes 02 and 22.... since both are for duplicate key detection.

1 Answers  


When would you use in-line perform?

2 Answers  


what is the difference b/w level no.01 & level no.77?

3 Answers   HCL,


what is search and searchall?what is the diffrence between them?give an best example?

3 Answers   BirlaSoft,


Categories