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
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.