When I run the following in an Oracle shell it works fine
truncate table table_name
But when I try to put it in a stored procedure
try the below code
execute immediate 'truncate table tablename' ;