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;
Available on demand!
Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.
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.