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
What is the usage of comp fields in cobol?
Why is it necessary that file needs to be opened in I-O mode for REWRITE?
which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad
Is it possible that the redefines clause has different picture clauses compared to the one it redefined?
A table has two indexes defined. Which one will be used by the SEARCH?
What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?
what is difference between cobol and cobol/400
How many bytes S(8) comp field occupy and its maximum value?
What is redefines clause in COBOL?
What is the difference between Global and External Variables?
Discuss about changing dataset name in proc.
Write a program that uses move corresponding.
how do you reference the variable unblock file formats from cobol programs
) How do u handle errors in BMS macro?
What are declaratives and what are their uses in cobol?