Hi i have a problem inserting the data set into the macro command definition. I don't know how to call a specific numeric variable. Data set has 4 columns, 2 are text and the last 2 are numeric. I want to call a text variable to put it in a logical expression with% LENGHT. This is the code. Below is the data. SAS 9.4 561 %macro make(podaci,County); 562 %if %length(&County) gt 8 %then 563 %let County = %substr(&County,1,8); 564 filename &podaci "&County"; 565 %mend make; 566 %make(prog.podaci18) ERROR: Invalid logical name. ERROR: Error in the FILENAME statement.
... View more