I have a script that loads a huge array. Kind of
Declare
PROCEDURE pLoadArray (vaCustcode_num IN OUT vacustcodednno)
IS
iarraysize INTEGER := 3000;
i INTEGER;
vErrorMessage VARCHAR2 (256) := '';
BEGIN
FOR i IN 1 .. iarraysize LOOP
vaCustcode_num.EXTEND;
END LOOP;
vaCustcode (1).custcode := '1.132276';
vaCustcodeSale (1).pn_num := '6140420';
vaCustcode (2).custcode := '1.132350';
etc..
All works fine except I wish I could load the array in another .sql (to make the code more scrollable) and have a main one .sql calling it. I can't use pacakages as will not have the rights.
Any ideas ?
Declare
PROCEDURE pLoadArray (vaCustcode_num IN OUT vacustcodednno)
IS
iarraysize INTEGER := 3000;
i INTEGER;
vErrorMessage VARCHAR2 (256) := '';
BEGIN
FOR i IN 1 .. iarraysize LOOP
vaCustcode_num.EXTEND;
END LOOP;
vaCustcode (1).custcode := '1.132276';
vaCustcodeSale (1).pn_num := '6140420';
vaCustcode (2).custcode := '1.132350';
etc..
All works fine except I wish I could load the array in another .sql (to make the code more scrollable) and have a main one .sql calling it. I can't use pacakages as will not have the rights.
Any ideas ?