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 / 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 |
what is the result of the following? DIVIDE A INTO B GIVING C. a.C=A/B b.the reminder of B/A is stored in C c.C=B/A d.the reminder of A/B is stored in C
write a program to eliminate duplicate records in a input file and send them to output file.
How include time & date in the report generation in cobol programing?
what is rediffine clause?in what situation it can use?give me real time example?
Program A (Normal COBBAT) calling a B Program (DB2COBOL, COBBATDB which is using a VSAM file. its a dynamic call. How we will handle VSAM file decleration in our from JCL from where we are running A PGM. And should we have PLAN for A pGM also. if possible can some one post a sample JCL. Thanks for help in advance.
Describe the cobol database components?
Write some characteristics of cobol as means of business language.
What is reference modification? What is UNION in sql and syntax? What is the difference between GDGS and VSAM? Which is prefer one? What is processing groups in endevor?
What COBOL construct is the COBOL II EVALUATE meant to replace?
what is label record is standard or omitted in file description of data division?
What is the difference between PIC 9.99 and 9v99?
01 a pic 9(9v99) 01 b pic 9(9.99) wht will be the stored vales in both cases