We have been using the PSPP::Perl interface to read data from .sav files into 
our database, and it works very well for that purpose.

Sometimes the files we read are rather large, and so it takes some time to load 
the data.  We like to be able to show progress to the user who is loading their 
data, so we need to know the total number of records to be loaded.  But right 
now, there doesn't appear to be any way to get the total number of cases other 
than scanning through all the records.  Is there any way to add a method to the 
Perl API so that we could do something like this:

my $pspp = PSPP::Reader->open($file);
my $case_count = $pspp->get_num_cases(); 

# then load cases to database and show percent complete at various points...


Thanks,

Rob


_______________________________________________
Pspp-users mailing list
Pspp-users@gnu.org
https://lists.gnu.org/mailman/listinfo/pspp-users

Reply via email to