Options nocenter nodate nonumber nosymbolgen;
%Let Path =/folders/myfolders;
Libname mylib "&Path";
%macro readraw (first=, last=);
Filename ZIPFILE SASZIPAM "&Path/names.zip";
%do year=&first %to &last;
DATA mylib.DSN&Year;
INFILE ZIPFILE(yob&year..txt) DLM=',';
INPUT name $ gender $ number;
RUN;
title "Listing from Data Set (Newborns' Names) for &Year";
proc print data=mylib.DSN&Year(obs=5) noobs;
format number comma7.;
run;
%end ;
%mend readraw;
%readraw(first=2000, last=2005); Here is my code using in SAS U.E. I put the names.zip in /folders/myfolders. But it still has a problem that SAS cannot find the .txt file. I don't know how to fix it. Could you please figure out how I can correct it? Thank you so much.
... View more