Does anyone know where DB2 Table and Cursor Declarations need to be located for Sub-Programs in a Nested Program?
We ar running on IBM Z/OS. The Programs were separate sub-routines, but for efficiency purposes we would like to create a Nested Program. The hope is it will speed up the process since it needs to process 10.7 million records on a dialy basis.
The shop here likes to put DB2 Table and Cursor declarations in the Working-Storage Section.
When we simply nested the programs under the main program, the compiler sent error messages...
DSNH312I E DSNHSMUD UNDEFINED OR UNUSABLE HOST VARIABLE
This was for every statement attemting to use DB2 columns or cursors.
When we added Table and Cursor declarations to the main program, and left them in the sub-programs, the compiler
said there were duplicate declarations.
I'm not sure you can set DB2 Table and Cursor Declarations as Global Variables.(?)
Anyone have a clue???
We ar running on IBM Z/OS. The Programs were separate sub-routines, but for efficiency purposes we would like to create a Nested Program. The hope is it will speed up the process since it needs to process 10.7 million records on a dialy basis.
The shop here likes to put DB2 Table and Cursor declarations in the Working-Storage Section.
When we simply nested the programs under the main program, the compiler sent error messages...
DSNH312I E DSNHSMUD UNDEFINED OR UNUSABLE HOST VARIABLE
This was for every statement attemting to use DB2 columns or cursors.
When we added Table and Cursor declarations to the main program, and left them in the sub-programs, the compiler
said there were duplicate declarations.
I'm not sure you can set DB2 Table and Cursor Declarations as Global Variables.(?)
Anyone have a clue???