We need quite some more info to help you out.
If it's in a standard file layout, take a look at PROC IMPORT.
Use a data step or SQL to subset your data.
If you are preparing a scheduled job, you might want to consider other options to optimize it.
You need to give us some representative sample data and then tell us how the result should look like.
Is this using SAS DI Studio (which version?) or coding?
With coding it could look like below pseudo code:
...
input var @;
if var ne 'certain value' then return;
input b c d;
....
output;
run;
Thanks
Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.
Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.
Need to connect to databases in SAS Viya? SAS’ David Ghan shows you two methods – via SAS/ACCESS LIBNAME and SAS Data Connector SASLIBS – in this video.
Find more tutorials on the SAS Users YouTube channel.