How would I create a new date - i've tried a put statement, input to format it but nothing works:
proc sql;
create table example
as select
id,
(edate, yymmdd10.) as edate2
from table
quit;
ERROR 22-322: Syntax error, expecting one of the following: (, ).
ERROR 76-322: Syntax error, statement will be ignored.
30 ! (edate, yymmdd10.) as edate2
_
22
ERROR 22-322: Syntax error, expecting one of the following: a name, *.
Do you know how sas handles dates?
Please post some information about the variable edate: type, length?
If edate is a character variable containing date strings, do the conversion to a SAS date like this:
input(edate, yymmdd10.) format=yymmdd10. as edate2
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
Check out this tutorial series to learn how to build your own steps in SAS Studio.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.