BookmarkSubscribeRSS Feed
Sagar_Pawar
Fluorite | Level 6

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.

3 REPLIES 3
Mitesh73941
Fluorite | Level 6

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).

LinusH
Tourmaline | Level 20

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?

Data never sleeps
mkeintz
PROC Star

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;

 

--------------------------
The hash OUTPUT method will overwrite a SAS data set, but not append. That can be costly. Consider voting for Add a HASH object method which would append a hash object to an existing SAS data set

Would enabling PROC SORT to simultaneously output multiple datasets be useful? Then vote for
Allow PROC SORT to output multiple datasets

--------------------------

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

How to connect to databases in SAS Viya

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.

Discussion stats
  • 3 replies
  • 1044 views
  • 0 likes
  • 4 in conversation