class= " lineNumbers " del
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
|
class= del
¡># notpretty " del class= " del id= " codeSnippet789805 del new ();
mi $workbook = $parser->parse (“/ms/user/s/sayantag/Source.xls”);
mi $worksheet1 = $workbook->Worksheet (“WF”);
#my $worksheet2 = $workbook->Worksheet (“Calc”);
impresión $worksheet1;
para $worksheet1 ($workbook->worksheets ()) {
mi ($row_min, $row_max) = $worksheet1->row_range ();
mi ($col_min, $col_max) = $worksheet1->col_range ();
para mi $row ($row_min. $row_max) {for## del ##First
para mi $col ($col_min. $col_max) {for## del ##Second
mi $cell = $worksheet1->get_cell ($row, $col);
¡si ($col==0 && $row! && =0 eq “$curr_etl” del >value (de $worksheet1->get_cell ($row, 0) -)) {
$col++;
mi $src_id = $worksheet1->get_cell ($row, $col) - >value;
impresión $src_id;
mi $dbh = DBI->connect (“dbi: MSDB2: NQ200001”, '', '', {“RaiseError” => 1}) o
morir “no puede conectar con la base de datos: $DBI:: errstr”;
$dbh->do (cancelación de pfnd.funding_journal_vw FJ donde fj.SRC_ID = “$src_id”));
$dbh->disconnect;
$workbook->close ();
}
}
}
}
|