Back to SPR List Previous Next
Arrays are included in summary table, DEFINE PROCEDURE VARIABLES NOARRAY/ARRAYS has no effect
Minor Closed - Fixed Found:2002.20.36 09 DEC 2004 Fixed:2002.20.37 06 DEC 2004

DETAILS
 ARRAY variables are being included in the summary variable table. This
 slows
 down processing of pql procedures and wastes storage space.

 Run the example program and when the infobox is displayed, check the sizes
 of
 recent sir scratch files in the temp directory. Under this bug there will
 be
 a ~200Mb scratch file. Delete the array definition from the program and
 this
 file is only around 80K and the program runs much faster.
EXAMPLE PROGRAM
 PROGRAM
 integer*4  svar
 integer*4  array avar (6000)
 c DEFINE PROCEDURE VARIABLES ARRAYS
 c DEFINE PROCEDURE VARIABLES NOARRAY
 for svar = 1,10000
 .    perform procs
 end for
 display infobox "done.."
 csv save file filename="svar.csv"
 end program
WORKAROUND
Avoid large arrays in PQL Procedure programs.
Back to SPR List Previous Next