🔒 This topic is solved and locked.
Need further help from the community? Please
sign in and ask a new question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Posted 08-31-2017 02:55 AM
(6181 views)
Hi All,
Why does this give me a warning "This SAS global statement is not supported in PROC SQL. It has been ignored.
It is ignoring the WHERE line.
Is there another way I can dynamically use the 1st day of the previous month (based on yesterday) and yesterday for my startdate and enddate?
%LET startDate = intnx('month',today()-1,-1,"BEGINNING");
%LET endDate = today()-1;
proc sql;
DELETE FROM CCEXTCSD.SQA_RESULTS;
WHERE EVAL_LOCAL_DATE BETWEEN &startDate AND &endDate;
quit;
1 ACCEPTED SOLUTION
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Have you tried removing the extra semicolon after SQA_RESULTS? WHERE should be a clause, not a separate statement.
4 REPLIES 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Have you tried removing the extra semicolon after SQA_RESULTS? WHERE should be a clause, not a separate statement.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
*facepalm*
Of course! I've removed the semicolon and it's working fine now 😄
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
The same issue happened to me
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Thank you!