Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Array

Status
Not open for further replies.

Matsul

IS-IT--Management
May 6, 2002
140
BE
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 ?



 
Matsul said:
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 apologize, Matsul, but I don't understand what you want to do. Could you please try again to explain what you want, perhaps giving an example (in pseudocode) of what you would like to do?

Thanks,

[santa]Mufasa
(aka Dave of Sandy, Utah, USA)
[I provide low-cost, remote Database Administration services: www.dasages.com]
“Beware of those that seek to protect you from harm. The cost will be your freedoms and your liberty.”
 
Hi Mufasa, all,

I want to have two SQL programs;

1. Loads array into memory and passes the array to program 2.

2. Performs processing on the array

So that in SQL I run say;

SQL> @load_array
SQL> @process_array

So how can I define the array such that process_array can see what was loaded by load_array ?

thanks,

Matt

 
Can you tell us what it is that you are ultimately trying to achieve? And also why you feel that it would be better to use 2 different procedures, one to load and one to rocess?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top