Hi , I am looking for a macro code as i have a variable name city and that variable contains 126 names of unique cities, and want to export the same data set into excel with condition where city='xyz' and the excel should contain the name of the same city which is used in the condition. As using the following code for 126 unique cities is not affordable. e.g.: proc export data=WORK.CAPFIRST_ENCOLLEC_MASTER (where=(City='PUNE')) dbms=xlsx outfile="\\10.4.1.205\Upload\DAC_FINAL_PUNE.xlsx" replace; run; So looking for macro and looping to export using that macro.
... View more