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 |
I have a occurs for 100 times but it has executed 101 time what could be the reason?
Can printer files (having 133 characters) be of variable length?
How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.
I want ALL ERROR codes in VSAM
3 Answers American Express, TCS,
i have two file, each file having : file1 is having 2 fields field1 field2 file2 is having 3 fields field1 field2 field3 my req is to make it one file like: field1 field2 field1 field2 field3 if anyone know please send me syntax, i tried this with DFSORT but could not succeed.
How will you find the currepted records in a file
How many divisions we have in Cobol ?
what is rediffine clause?in what situation it can use?give me real time example?
Difference between lrecl, blksize among PS, PDS issues? i.e in jcl at dcb
Write down the divisions of cobol program?
what is the purpose of linkage section?
input:- 12233344445555566666... output:- 1=1,2=4,3=9... Here firstno i.e 1 should be displayed and after that the alikeno.s should be added n displayed.i.e 2+2=4 like tat it goeson.