You should do this:
1. Fix your SAS UE setup - you need to create a folder called myfolders not myfolder - it's why you possibly had issues with getting it set up. Place the file in that folder. You can continue to use your current setup but it's probably easier in the long run to set it up correctly.
2. Set up a library to the location where you save your SAS datasets. You can point directly to the file like you've done but you'll almost never seen that done anywhere.
3. As indicated your FORMAT statement is incorrect.
The code snippet below may help. FYI - you do not need to format the date to filter it first to get only the dates of interest. As long as the variable IS a SAS date, so numeric with a date format (date9, yymmdd8, monyy7.) then you can filter it as desired.
libname myFiles '/folders/myshortcuts/myfolder/';
data new;
set myFiles.aprsales;
format MY_DATE_VARIABLE date9.; *Filter for less than Jan dates; WHERE MY_DATE_VARIABLE <= "01Jan2016"d;
run;
... View more