I am trying to input some stock data like below, I've dropped the infile statement, removed the dlm from the input statement and get the same message every time. The output shows up with the headers but empty, log is below. I haven't done this in a while, so I think it might be a simple syntax error but I'm not seeing it. Appreciate any help in loading this data
Thanks:
data nflx;
infile cards dsd dlm=',';
informat date mmddyy10. close 8.;
format date mmddyy10. close 8.;
cards;
8/22/2017,169.34
8/23/2017,169.06
8/24/2017,168.13
8/25/2017,165.95
log:
I caught my own issue, simple error, I forgot the input statement:
data nflx;
infile cards dsd dlm=',';
input date close;
informat date mmddyy10. close 8.;
format date mmddyy10. close 8.;
cards;
8/22/2017,169.34
8/23/2017,169.06
8/24/2017,168.13
I caught my own issue, simple error, I forgot the input statement:
data nflx;
infile cards dsd dlm=',';
input date close;
informat date mmddyy10. close 8.;
format date mmddyy10. close 8.;
cards;
8/22/2017,169.34
8/23/2017,169.06
8/24/2017,168.13
Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!
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.