Declare same Cursor more than once in a program?
Posted: Tue Jun 03, 2014 5:16 pm
Hi,
In a COBOL program, I have to fecth data from more than one table.The tables, we need to refer, are cahnged dynamically based upon a column value m say COL1. We have different tables defined for each COL1. Using some mechanism, we'd calculate the value for COL1 in theprogram and based on that, we need to call one or many tables.
To do that, do you think, is it possible to declare the same cursor multiple times, each time for differet value of COl1 to refer to that tabless?
In a COBOL program, I have to fecth data from more than one table.The tables, we need to refer, are cahnged dynamically based upon a column value m say COL1. We have different tables defined for each COL1. Using some mechanism, we'd calculate the value for COL1 in theprogram and based on that, we need to call one or many tables.
To do that, do you think, is it possible to declare the same cursor multiple times, each time for differet value of COl1 to refer to that tabless?