Help using Base SAS procedures

List of Client IDs

Accepted Solution Solved
Reply
Contributor
Posts: 61
Accepted Solution

List of Client IDs

Hello,

 

I have large SAS dababase of clients. In addition, I have a list of about half million clients with special characteristics that I recieved in an Excel file. I would like to tag these clients in my SAS dababase.

 

I understand that I can import the EXCEL file into SAS and merge the two datasets, but unfortunatelly I'm not allowed to permanently save created databases, (I can only use the WORK directory) So every once in a while, I have to re-create the database I use and the merging and importing of the Excel file takes prohibitively long every time. Do I have any other options?

 

Can I ask SAS to read the list from an EXCEL file?

 

Thanks for your help.

 


Accepted Solutions
Solution
‎05-17-2017 10:40 AM
Super User
Posts: 7,768

Re: List of Client IDs

Have a permanent library set up for use by you, and import the Excel into that.

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers

View solution in original post


All Replies
Solution
‎05-17-2017 10:40 AM
Super User
Posts: 7,768

Re: List of Client IDs

Have a permanent library set up for use by you, and import the Excel into that.

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
Contributor
Posts: 61

Re: List of Client IDs

Posted in reply to KurtBremser

So there is no way around it?

 

Super User
Posts: 7,768

Re: List of Client IDs

How do you work with SAS? Studio, or Enterprise Guide?

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
Super User
Super User
Posts: 7,942

Re: List of Client IDs

Half a million rows in Excel, I would have jumped out of the window (assuming on floor > 3 of course) by now.  

If you only have work, import the data to a dataset, then copy that dataset from work to somewhere you have access to and copy + paste it back to work any time you need to use it.  However it sounds like a total mess anyways.

Super User
Posts: 5,499

Re: List of Client IDs

Are you allowed to permanently save other files, such as text files?  SAS formats?

 

At any rate, it's probably faster to avoid sort + merge.  You can create a format from the Excel file and use the format to flag records.  If you want details, you'll have to give a small example of what is in the Excel file.  (DO NOT post an Excel file, just post a few lines of text.)

☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 5 replies
  • 143 views
  • 0 likes
  • 4 in conversation