I don't think you need to go through all that to do what you want, Don. You don't require all the stuff that's in the "browse categories" mod.
Let's take it from the top.
@lines = <DB>;
close DB;
$fieldnum = 6; change this to match your Year_Graduated field number
foreach $line (@lines) {
@data = &split_decode($line);
++$count{$data[$fieldnum]};
}
$i = 1;
foreach $gyear (sort {$count{$b} <=> $count{$a} } keys %count) {
if ($i>5) { last; }
print "$gyear: ($count{$gyear})<BR>";
++$i;
}
I tested this out and it seems to work.
Stephane, I'm afraid I'm not familiar with Isis, so I can't tell you if DBMan will give you something similar. Can you give me an example of what you want?
------------------
JPD
[This message has been edited by JPDeni (edited September 21, 1999).]
Let's take it from the top.
Code:
open (DB, "<$db_file_name") or &cgierr("unable to open $db_file_name. Reason: $!"); @lines = <DB>;
close DB;
$fieldnum = 6; change this to match your Year_Graduated field number
foreach $line (@lines) {
@data = &split_decode($line);
++$count{$data[$fieldnum]};
}
$i = 1;
foreach $gyear (sort {$count{$b} <=> $count{$a} } keys %count) {
if ($i>5) { last; }
print "$gyear: ($count{$gyear})<BR>";
++$i;
}
I tested this out and it seems to work.
Stephane, I'm afraid I'm not familiar with Isis, so I can't tell you if DBMan will give you something similar. Can you give me an example of what you want?
------------------
JPD
[This message has been edited by JPDeni (edited September 21, 1999).]