Message on server was the part that I was missing.
Thanks.
For those who run into similar - here is a little info:
my $importcmd = "LOAD FROM " . $filename . " OF IXF MESSAGES on
server INSERT INTO USERID." . $table ;
print "importcmd = $importcmd\n";
# Prepare import command
my $sths = $dbh->prepare("cal l sysproc.admin_c md(?)") #
sysproc.db2load
or return ($self->do_return($q , 0, $dbh->errstr, $dbh->err, $dbh-
>state,
"Error while preparing import on $table.", $dbh));
# Bind input parameters
$sths->bind_param( 1, $importcmd);
# Call the stored procedure
$sths->execute()
or return ($self->do_return($q , 0, $dbh->errstr, $dbh->err, $dbh-
>state,
"Error while executing import on $table.", $dbh));
# bind column 1 to variable
$sths->bind_col(1, \$outCol1);
# bind column 2 to variable
$sths->bind_col(2, \$outCol2);
# bind column 3 to variable
$sths->bind_col(3, \$outCol3);
# bind column 4 to variable
$sths->bind_col(4, \$outCol4);
# bind column 5 to variable
$sths->bind_col(5, \$outCol5);
# bind column 6 to variable
$sths->bind_col(6, \$outCol6);
# bind column 9 to variable
$sths->bind_col(9, \$msg_retrieval );
# bind column 10 to variable
$sths->bind_col(10, \$msg_removal);