Thanks Reeza. If this could be of help for others, the workaround code for this issue that I have used is: PROC SQL; CREATE VIEW EXPORT_DATA AS SELECT * FROM work.test_issue(drop=var1_a ); QUIT; PROC EXPORT DATA=EXPORT_DATA OUTFILE='test_data.txt' DBMS=dlm REPLACE; delimiter='|'; RUN; This works fine but drop statement directly does not work.
... View more