Hi, I am working on the below program but this is throwing an error with one of the files. %MACRO CLEAN_TEXT(PATH,DSN,FILENAME,DLM,ARG1,ARG2,ARG3,ARG4,ARG5,ARG6); PROC EXPORT DATA=&DSN. OUTFILE="&PATH./&FILENAME..txt" DBMS=DLM REPLACE; DELIMITER= "&DLM."; RUN; %MEND CLEAN_TEXT So, just to explain, the above macro considers 10 arguments. Out of these, the first three correspond to the location (address of the folder to which the dataset is to be exported), dataset name and the filename that is to be used for saving the text file. I am running this macro on a UNIX environment under SAS 9.4 The issue that am facing is that for creating a particular text file when I pass on the arguments SAS is throwing below the error, ERROR: File Name value exceeds maximum length of 201 characters. I would be very much happy if somebody could share some information about this error message so that I could fix my program. Thanks, Shiva.
... View more