I want to truncate the table instead of drop the table when it run the code. How can I change the code, from drop existing table to truncate table? In SAS LASR table, there is a line of code like below :
/* Drop existing table */
%vdb_dt(LIBNAME.TARGETLASRTABLE);
The reason to do that, because when the table and the report designer reload at the same time, it will cause the report designer in SAS VA prompt error message "The data source (TARGETLASRTABLE) is no longer accessible, or has been replaced. Would you like to select a new data source?".
Because the table is drop in the code, therefore the prompt message will appear. to avoid the prompt message, I would like to change the drop statement to truncate statement. Is there any way to write the truncate statement code to replace drop existing table? Please help, thank you.