BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
adi121
Fluorite | Level 6

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.

 

1 ACCEPTED SOLUTION

Accepted Solutions
Jagadishkatam
Amethyst | Level 16

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;
Thanks,
Jag

View solution in original post

1 REPLY 1
Jagadishkatam
Amethyst | Level 16

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;
Thanks,
Jag

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 1449 views
  • 0 likes
  • 2 in conversation