I have the following code to scan the input from my files test1.txt and test2.txt using SAS University edition. I have also placed it in the question using the SAS icon. %macro datm1; %do i=1% to 2; data NEW&i; libname OLD "/folders/myfolders/bootprocess/"; /*Input D*/ datafile="/folders/myfolders/bootprocess/TEST&i..DAT/"; INPUT @ 1 CHECK $CHAR200.@; /*DATA NAME IS CHECK WHICH IS INDEXED W/'THETA =' THIS MUST BE EXACT*/ S=INDEX(CHECK,'THETA ='); /*DO LOOP TO PICK OUT CORRECT LINE OF CODE LINE W/STRING WILL BE NUMBERED WITH 1 OTHERS=0*/ /*SCAN FUNCTION ALLOWS VARIABLES TO BE OUTPUT FROM THAT POSITION WITH THE DESIRED NAME*/ IF S>0 THEN DO; THETA_=SUBSTR(CHECK,S+0,110); K13=SCAN(THETA_,1,' '); K23=SCAN(THETA_,2,' '); DURATION=SCAN(THETA_,3,' '); LAG=SCAN(THETA_,4,' '); LOGIT=SCAN(THETA_,5,' '); K30 =SCAN(THETA_,6,' '); K34= SCAN(THETA_,7,' '); VOLUME=SCAN(THETA_,8,' '); OUTPUT; END; PUT K13 K23 DURATION LAG LOGIT K30 K34 VOLUME; KEEP K13 K23 DURATION LAG LOGIT K30 K34 VOLUME; *PROC PRINT; RUN; dATA PEW; SET NEW; PROC PRINT; RUN; When I run the code I get no output but an error 49 which states " The meaning of an identifier after a quoted string might change in a future SAS release. Inserting white space between a quoted string and the succeeding identifier is recommended." I really habe no idea what this means. Can anyone tell me what is the problem and how I can solve it? The data sets test1 and test 2 are the same.
... View more