If you're using SAS Studio you are probably using a SAS environment that is centralized. Maybe SAS OnDemand for Academics?
You cannot access your local file system directly. Instead, if you have data to upload (and results to download) you must first place them in a file path that SAS can access. Use the Upload function in SAS Studio to put your data into a place where SAS can reference it. Then use the Download features to copy data to a local folder if needed.
The "C:\Users..." paths in this macro call would need to change.
%DOIT (TYPE = ACG ASA ASG ASH ASR AST ATG
BCG BSA BSG BSR BST BTM BTS ,
INDIR = C:\Users\〇〇(it's my name)\OneDrive - △△(it's my university's name).jp\デスクトップ\TIMSS2015_SASData,
OUTDIR = C:\Users\〇〇\OneDrive - △△.jp\デスクトップ\TIMSS SASデータ移行用) ;
Update:
I worked on a code method that seems to work more reliably than the T15_CONVERT.SAS sample that is provided by TIMSS 2015 site.
/* folder where the TIMSS *.exp files are */
%let in = /home/myid/folder-with-exp-files;
/* folder to contain the converted data sets*/
%let out = /home/myid/folder-for-datasets;
data filenames;
length fref $8 fname $200;
did = filename(fref, "&in.");
did = dopen(fref);
do i = 1 to dnum(did);
fname = dread(did,i);
output;
end;
did = dclose(did);
did = filename(fref);
keep fname;
run;
libname outdir "&out.";
%macro convert(rootname=);
PROC CIMPORT FILE="&in./&rootname..exp"
DATA=OUTDIR.&rootname. ;
RUN;
%mend;
data _null_;
set filenames;
root = scan(fname,1,".");
call execute(%nrstr("%convert(rootname="||root||");"));
run;
... View more