I am trying to get several files that have the same layout in, but it will only keep data from the last file.
(note separate folders and file extensions)
Cannot figure it out!
Might also try
filename ToRead ("/microdata/file1.prn", "/microdata/otherfolder/file2.txt", "/microdata/anotherfolder/file3.txt");
and use
INFILE ToRead lrecl=430 missover;
There may be issues caused by column headers in the data files if present.
Hi,
Take a look at the MEMVAR & FILEVAR options for the infile statement
Take a look at examples 10 & 13
Might also try
filename ToRead ("/microdata/file1.prn", "/microdata/otherfolder/file2.txt", "/microdata/anotherfolder/file3.txt");
and use
INFILE ToRead lrecl=430 missover;
There may be issues caused by column headers in the data files if present.
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.