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
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.