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 there's a (good) way of doing without using user writen code.
If this is something you wish to do repeatedly, create a user written transformation.
Is 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: Call for Content

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 16. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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
  • 676 views
  • 0 likes
  • 4 in conversation