options nosymbolgen nomtrace nonotes nosource noMPRINT;
%macro datm4;
%do i=1 %to 10;
data result&I ;
/*inialization of flag to 0 which will be used to find line of interest*/
retain flag_section1 0 ;
infile "FOLDERS/myfolders/FINALSAS/DATA/TEST&i..nm7/TEST&i..lst" END=EOF;
if index(_infile_ , 'NO. OF SIG. DIGITS IN FINAL EST.:') and scan(_infile_, -1,'') = '2.9' then flag_section1 =1;
input @; if _infile_ =: 'NO. OF SIG. DIGITS IN FINAL EST.: 2.9' then flag_section1 =1;
if eof then output;
run;
%END;
TITLE ' DISTRIBUTION D DATA';
data FLAG;
set %do i=1 %to 10;RESULT&i %end ;;
run;
%mend datm4;
%datm4;
PROC EXPORT DATA=flag
OUTFILE= '/folders/myfolders/FINALSAS/Flag.XLSX '
DBMS=XLSX REPLACE;
RUN; The program above runs ok on my laptop. Before I ran the code on the workstation I checked the properties and the location was given as:/folders/myfolders/myfolders/finalsas/….. I got the following error message which is listed for 7 but applies to all N=10 folders: ERROR: Physical file does not exist, /opt/sasinside/SASConfig/Lev1/SASApp/FOLDERS/Myfolders/myfolders/FINALSAS/DATA/TEST7.nm7/TEST7.lst. WARNING: The data set WORK.RESULT7 may be incomplete. When this step was stopped there were 0 observations and 1 variables. WARNING: Data set WORK.RESULT7 was not replaced because this step was stopped. ERROR: Physical file does not exist, /opt/sasinside/SASConfig/Lev1/SASApp/FOLDERS/Myfolders/myfolders/FINALSAS/DATA/TEST8.nm7/TEST8.lst. Can anyone tell me why using the path from the pull down properties tab in SAS UE, although it has an extra myfolders, does not work?
... View more