Perhaps what you want is to concatenate these two files? And do you want your output to be a SAS data set (mydata.prices3) and a new flat file ‘c:\stocksdata\150stocks.dat’ ?
I think something like this would work - check that you ahave a ';' at the ed of each statement, and a RUN after each step.
LIBNAME mydata 'c:\stocksdata' ; FILENAME prices1 'c:\stocksdata\100stocks.dat' ; FILENAME prices2 'c:\stocksdata\50stocks.dat' ; FILENAME prices3 'c:\stocksdata\150stocks.dat' ;
run; DATA temp1; Infile prices1; Input ID 1-10 open 12-20 high 22-30 low 32-40 close 42-50; RUN; DATA temp2; Infile prices2; Input ID 1-10 open 12-20 high 22-30 low 32-40 close 42-50; RUN; DATA mydata.prices3; set temp1 temp2; file prices3 ; put @1 ID @9 item; RUN;
... View more