I know my query will return more than one row but I don't want cursor what should I do?



I know my query will return more than one row but I don't want cursor what should I do?..

Answer / secret service

Add FETCH FIRST 1 ROW ONLY to your query.

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More COBOL Interview Questions

COBOL Snippet: Tell where the control will when the below code execute IF (A=B) CONTINUE ELSE NEXT SENTENCE PERFORM <IMP-STMT> END-IF.

7 Answers   HCL,


In CICS/VSAM every file that is accessed should be defined in FCT. we have CICS READ, WRITE, BROWSE commands for VSAM files. How does it work with DB2 tables. It know it has to do with the plan. Please expain with examples.

1 Answers  


What is the Importance of GLOBAL clause According to new standards of COBOL?

2 Answers   Infosys,


i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com

0 Answers  


how the control comes back from subprogram to mainprogram

3 Answers   IBM,






A cobol program to read a file , match it with other if. If match occurs then write it to an output file. If no match then no need to write it.Error log created by program to track any error.

1 Answers  


What are all the divisions of a COBOL program?

0 Answers  


i am a btech cs 2009 passout. i am opting for mainframe course. is it good to do this course? pls. anyone suggest me

4 Answers  


What is an in line perform? When would you use it? Anything else you wish to say about it.

0 Answers  


in the TIME parameter we r giving hours r minutes

4 Answers   IBM,


Is it possible to mutliply a comp variable with an comp-3 variable. Will there be any error if i do it?

3 Answers   IBM, UST,


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

0 Answers  


Categories