Craig wrote:
Is there a loop I can use that will process the first 10,000 files, then 
exit; then the next 10,000 files, then exit; and so on until all files 
have been processed? The exiting is so I can run a SQL Server job to 
insert the processed files into SQL Server.

-- Craig
Eric replied:
Craig,
Couldn't you use a while loop saying while there is input, run a for loop
that breaks whenever your counter > 10000 and resets all the variables? Eric

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Craig Cardimon
Sent: Monday, September 26, 2005 10:41 AM
To: [email protected]
Subject: Processing numbered files sequentially -- 10,000 at a time

I'm working with large numbers of files that can vary in size up to 4 GB 
and more. Every time I try tackling them straight on I run out of 
virtual memory. The files are sequentially numbered somewhat like SS 
numbers -- they contain hyphens. The file numbers are unique as far as I 
can tell.

Is there a loop I can use that will process the first 10,000 files, then 
exit; then the next 10,000 files, then exit; and so on until all files 
have been processed? The exiting is so I can run a SQL Server job to 
insert the processed files into SQL Server.

-- Craig


---
avast! Antivirus: Outbound message clean.
Virus Database (VPS): 0539-0, 09/26/2005
Tested on: 9/26/2005 11:40:47 AM
avast! - copyright (c) 1988-2004 ALWIL Software.
http://www.avast.com



_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs



_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to