Hello Guys,
I have been given the task of improving one of the program which is running very long.
The program has a clp calling rpg and the ncalling another rpg to produce a report
The cl takes lot of time it includes OVRDBF,OPNQRY .
The qryslt parameter of opnqryf contains a variable of 2000 length ,which changes according to the input parameter
I was thinking of replacing the opnqryf with a view but view won't accept parameters. so i thought of going to a udtf to write the logic which includes couple of joins some grouping etc.
Is my approach correct ?Is there any different way to deal with these dynamic chaning qryslt parameter.?
I have been given the task of improving one of the program which is running very long.
The program has a clp calling rpg and the ncalling another rpg to produce a report
The cl takes lot of time it includes OVRDBF,OPNQRY .
The qryslt parameter of opnqryf contains a variable of 2000 length ,which changes according to the input parameter
I was thinking of replacing the opnqryf with a view but view won't accept parameters. so i thought of going to a udtf to write the logic which includes couple of joins some grouping etc.
Is my approach correct ?Is there any different way to deal with these dynamic chaning qryslt parameter.?
Comment