Guest User

Untitled

a guest
Apr 25th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. %macro one (output, Sample);
  2.  
  3. proc import out=output
  4.  
  5. datafile= "C:UserskomalDesktopSample.csv"
  6.  
  7. dbms=csv replace;
  8.  
  9. getnames=yes;
  10.  
  11. run;
  12.  
  13. %mend one;
  14.  
  15. %one (output, Sample.csv);
  16. %one (data2, datafiletwo.xlsx);
  17.  
  18. %macro one (output, Sample,type);
  19. proc import out=&output
  20. datafile= "C:UserskomalDesktop&Sample"
  21. dbms=&type replace;
  22. getnames=yes;
  23. run;
  24. %mend one;
  25.  
  26. %one (output, Sample.csv,cvs);
  27. %one (data2, datafiletwo.xlsx,excel);
  28. %one (class, class.txt,tab);
Add Comment
Please, Sign In to add comment