BookmarkSubscribeRSS Feed
venkatnaveen
Obsidian | Level 7
i have a textfile with 100gb data in that i have company names genpact tcs records there how can i import only tcs record in to my dataset?ular

3 REPLIES 3
LinusH
Tourmaline | Level 20

We need quite some more info to help you out.

  • You wish to subset on company name, and keep Genpact and TCS?
  • What format is the file?
  • What do you intend to do with the subset afterwards?

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.

Data never sleeps
Patrick
Opal | Level 21

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;

venkatnaveen
Obsidian | Level 7

Thanks

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

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
  • 923 views
  • 0 likes
  • 3 in conversation