Suppose i have a millions of record and i have to select 1st record and last records. Without using user written code how to implement in sas Data integration studio.
Can you elaborate your question? Is your dataset contains unique columns with keys? If you do not have duplicate data then may be possible to find using extract and join(using having min and max date value).
I don't think there's a (good) way of doing this without using user writen code.
If this is something you wish to do repeatedly, create a user written transformation.
Are your source data stored in SAS datasets?
I've never had occasion to use Data Integration Studio. But the DATA step code below seems extremely simple:
data want;
do ptr=1,last;
set sashelp.class nobs=last point=ptr;
output;
end;
stop;
run;
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.