I have an issue with my formula to select a date, using PROc SQL in SAS. What do I do wrong? Thank you all. Regards, Geoff
I use this coder:
FROM
VTXBUSS.s
WHERE
t1.ifrs_stage_date_at_start IS ’ 31DEC2017% ’
ORDER BY
t1.customer_id,
I get a syntax error back. Dates are in this format: 31DEC2017:00:00:00.000000
SAS gives as log:
ERROR: The value '’'n is not a valid SAS name. WARNING: Apparent invocation of macro ’ not resolved. 45 WHERE t1.ifrs_stage_at_start NOT = t1.ifrs_stage_PROV AND t1.ifrs_stage_date_at_start = ’31DEC2017%’, _ 76 ERROR 22-322: Syntax error, expecting one of the following: ;, !, !!, &, (, *, **, +, -, '.', /, <, <=, <>, =, >, >=, AND, EQ, EQT, EXCEPT, GE, GET, GROUP, GT, GTT, HAVING, INTERSECT, LE, LET, LT, LTT, NE, NET, NOT, OR, ORDER, OUTER, UNION, ^, ^=, |, ||, ~, ~=.