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
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and save with the early bird rate—just $795!
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.