/ Published in: SAS

This SAS macro will convert a dataset to a text file
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
libname BC "C:\file\path"; %macro filecreate; %do x=1 %to 700; filename lb18 "C:\folder\lb&x..txt" LRECL=8006; data _null_; set BC.some_data (firstobs=&x obs=&x); file lb18 dsd dlm='09'x; put var1; run; %end; %mend; %filecreate;
URL: http://jaredprins.com/sas/2011/11/14/convert-sas-dataset-to-text-file.html
Comments
