Thankyou Cynthia.Kindly suggest me on this.I use the following code :
data result;
set period1;
DateTimeofSale = DateofSale||":"||TimeofSale;
DateofSale=datepart(DateTimeofSale);
SameDayDelivery=timepart(DateTimeofSale)<='15:00't;
drop= DateofSale TimeofSale;
proc print data = result;
run;
it doesnt give me the dateofsale and sameday delivery.The log -
323 SameDayDelivery=timepart(DateTimeofSale)<='15:00't;
324 drop= DateofSale TimeofSale;
----------
22
ERROR 22-322: Syntax error, expecting one of the following: !, !!, &, *, **, +, -, /, <, <=, <>, =,
>, ><, >=, AND, EQ, GE, GT, IN, LE, LT, MAX, MIN, NE, NG, NL, NOTIN, OR, ^=, |, ||,
~=.
NOTE: Character values have been converted to numeric values at the places given by: (Line):(Column).
322:29 323:34 324:15 324:26
NOTE: Numeric values have been converted to character values at the places given by: (Line):(Column).
322:20
NOTE: The SAS System stopped processing this step because of errors.
WARNING: The data set WORK.RESULT may be incomplete. When this step was stopped there were 0
observations and 9 variables.
WARNING: Data set WORK.RESULT was not replaced because this step was stopped.