Hi all, somebody help, I happen to have a dataset, where by i want to read the second column and the third column, The dataset is in csv format, so the first column does n't have a name, how can i capture this under the input statement?
*reading in the data; data passenger; infile "path " dsd firstobs=2; input time airpassengers; run;
This is the code am using.
this is how the dataset looks like in csv format
The output is like this
So the output has not captured the second column, kindly help
Thanks!!!
In the input-statement just add a variable for the unnamed column and add a drop-statement to prevent the variable from being written to the dataset.
input ignore_me time airpassengers;
drop ignore_me;
In the input-statement just add a variable for the unnamed column and add a drop-statement to prevent the variable from being written to the dataset.
input ignore_me time airpassengers;
drop ignore_me;
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.