I am trying to learn SAS through online instructions and materials I have written SAS code to merge two data sets: 100stocks.dat and 50stocks.dat My boss does not think it is complete or optimal. Could a SAS expert please inform me what statements I might have missed and if I have unnecessary statements, especially the RUN statements, in the code below. Thank you. LIBNAME mydata ‘c:\stocksdata\’ FILENAME prices1 ‘c:\stocksdata\100stocks.dat’ FILENAME prices2 ‘c:\stocksdata\50stocks.dat’ FILENAME prices3 ‘c:\stocksdata\150stocks.dat’ 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 prices3; MERGE temp1 temp2; BY ID; RUN; PROC COPY inlib=work outlib=mydata SELECT prices3 RUN;
... View more