Good Ideas Quasar.
On your first idea to split the input file, I already tried it and seems this is the costliest process because if we split the 10 million records into 25k each, it will be
400 input and 400 output files.
I already got an idea to use a GTT in the jcl, by declaring it and then
inserting into it. But I dont know how to insert 10 million rows at one go.
Secondly, I thought of
loading 10 million records to the GTT using load jcl and then use it in the next step to unload data by joining GTT with my db2 table. But I guess this will not work as the GTT is session specific and the data will be deleted after the completion of the first step.
Do you have any idea to declare, and load a GTT in one step and use it in the second step of a JCL?