data customer1;
input acctno trnsdt date10. trnsamt ;
format trnsdt date9.;
cards;
1 15jan2020 300
1 15mar2020 1400
1 16mar2019 1450
1 16mar2019 1200
1 18mar2020 1800
;run;
The data set executes successfully,
proc sql;
select acctno,trnsdt,max(trnsamt) as max from
from customer1
group by acctno,trnsdt;
But my proc sql query is not running .
I'm not able to figure out the error.
Error:
ERROR: File WORK.FROM.DATA does not exist.
Let me know how can i resolve this.
in your code 'from' used twice , remove one 'from'
try this
proc sql;
select acctno,trnsdt,max(trnsamt) as max
from customer1
group by acctno,trnsdt;
in your code 'from' used twice , remove one 'from'
try this
proc sql;
select acctno,trnsdt,max(trnsamt) as max
from customer1
group by acctno,trnsdt;
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 lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.