I used the follwing code :
libname sc 'c:\Cwa';
data sc.period2A;
infile 'c:\Cwa\period2_sales_data_A.dat';
Input TransactionID $1-8
DateofSale $9-18
LaptopModel $19-24
UnitsSold 25-27
Warranty 28;
proc sort data=period 2A;
By TransactionID;
Run;
proc print data=period2A;
run;
data sc.period2B;
infile 'c:\Cwa\period2_sales_data_B.dat';
Input TransactionID $1-8
TimeofSale $9-16;
proc sort data=period 2B;
By TransactionID;
Run;
proc print data=period2B;
run;
data sc.new;
merge period2A period 2B;
by TransactionID;
RUN;
proc print data = new;
Run;
A Sample of the Log window showing errors is :
18 proc sort data=period 2B;
-
22
200
ERROR: File WORK.PERIOD.DATA does not exist.
ERROR 22-322: Syntax error, expecting one of the following: ;, (, ASCII, BUFFNO, DANISH, DATA,.... )
ERROR 200-322: The symbol is not recognized and will be ignored.
19 By TransactionID;
20 Run;
51 data sc.new;
52 merge period2A period 2B;
-
22
200
ERROR: File WORK.PERIOD.DATA does not exist.
ERROR: File WORK.B.DATA does not exist.
ERROR 22-322: Syntax error, expecting one of the following: a name, a quoted string, (, -, :, ;, END,
_DATA_, _LAST_, _NULL_.
ERROR 200-322: The symbol is not recognized and will be ignored.
53 by TransactionID;
54 RUN;
what mistake have i made ?
kindly guide .
mark
NOTE: The SAS System stopped processing this step because of errors.