To suspend the datasets:
chomp(@list = `dfpm dataset list`);
foreach $list (@list) {
$list =~ s/\s+//;
($id) = split(/\s+/,$list);
print "$id\n";
$cmd = `dfpm dataset suspend $id`;
print "$cmd\n";
}
To resume the datasets:
chomp(@list = `dfpm dataset list`);
foreach $list (@list) {
$list =~ s/\s+//;
($id) = split(/\s+/,$list);
print "$id\n";
$cmd = `dfpm dataset resume $id`;
print "$cmd\n";
}