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
Discuss about changing dataset name in proc.
When is inspect verb is used in cobol?
What rules are to be followed while using the corresponding options?
What is the difference between goback, stop run and exit program in cobol?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?
how do you reference the esds vsam file formats from cobol programs
Which division and paragraphs are mandatory for a COBOL program?
Write down the divisions of cobol program?
How to print 10 to 1 if the input have only 10 digit number?
What the difference is between continue and next sentence?
What is link edit in cobol?
What is report-item in COBOL?
What is the difference between PIC 9.99 and 9v99 in COBOL?
Explain about different table spaces.
What are the different types of condition in cobol and write their forms.