- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Posted 07-04-2024 01:28 PM
(1378 views)
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
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).
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
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
--------------------------
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
--------------------------