If a sub program is called from mainprogram.I have opened
cursor in main program and Fetch the result in
subprogram ,Is it possible ?If yes please tell me the
reason.

Answer Posted / shruti

The scope of cursor-name is the source program in which it is defined; that is, the application program submitted to the precompiler. Thus, you can only refer to a cursor by statements that are precompiled with the cursor declaration. For example, a COBOL program called from another program cannot use a cursor that was opened by the calling program

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write the code to count the sum of n natural numbers.

697


How do you define a variable of comp-1 and comp-2?

701


how do you reference the fixed unblock file formats from cobol programs

703


Difference between cobol and cobol-ii?

704


Can a Search can be done on a table with or without Index?

800






How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?

700


In COBOL, what is the different between index and subscript?

753


What is the difference between comp and comp-3?

693


What rules are to be followed while using the corresponding options?

632


What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?

709


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


how we sort two input files based on a common column and giving one o/p file please send me the coding logic?

1646


What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?

672


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

1766


how to move the records from file to array table. give with code example

2216