Hi Again,
I have a print statement:
unless (print OVERRELATEFIL (
trim($overrelatefil{tin}),
trim($overrelatefil{parent_tin}),
trim($overrelatefil{paid_tin}),
trim($overrelatefil{sales_channel}),
trim($overrelatefil{eff_dt}),
trim($overrelatefil{term_dt}),
trim($overrelatefil{created_dt}),
trim($overrelatefil{created_userid}),
trim($overrelatefil{last_updated_dt}),
trim($overrelatefil{last_updated_userid}),
trim($overrelatefil{no_new_biz_eff_dt}),
trim($overrelatefil{rel_mbu_cd})
))
I want to add an if statement after the )) that will print a \n if the record is not the last record which I have a ||| in the $overrelatefil{tin} field. I am using this if statement:
if (OVERRELATEFIL ($overrelatefil{tin}) eq "|||") {
print "";
} else {
print "\n";
}
I am getting a syntax error with the if statement. I am looking at it and it looks okay. Can anyone see what I am doing wrong?
Thanks again
Mark
I have a print statement:
unless (print OVERRELATEFIL (
trim($overrelatefil{tin}),
trim($overrelatefil{parent_tin}),
trim($overrelatefil{paid_tin}),
trim($overrelatefil{sales_channel}),
trim($overrelatefil{eff_dt}),
trim($overrelatefil{term_dt}),
trim($overrelatefil{created_dt}),
trim($overrelatefil{created_userid}),
trim($overrelatefil{last_updated_dt}),
trim($overrelatefil{last_updated_userid}),
trim($overrelatefil{no_new_biz_eff_dt}),
trim($overrelatefil{rel_mbu_cd})
))
I want to add an if statement after the )) that will print a \n if the record is not the last record which I have a ||| in the $overrelatefil{tin} field. I am using this if statement:
if (OVERRELATEFIL ($overrelatefil{tin}) eq "|||") {
print "";
} else {
print "\n";
}
I am getting a syntax error with the if statement. I am looking at it and it looks okay. Can anyone see what I am doing wrong?
Thanks again
Mark