Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7885537
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T05:05:50+00:00 2026-06-03T05:05:50+00:00

Suppose I am trying to sum up one variable (call it var_1 ) in

  • 0

Suppose I am trying to sum up one variable (call it var_1) in a very large dataset (nearly a terabyte). The dataset is both long and wide. My code would look like this:

PROC MEANS DATA=my_big_dataset SUM;
    VAR var_1;
RUN;

Would I get any performance gain at all by using the KEEP option on the dataset being read? That is:

PROC MEANS DATA=my_big_dataset (KEEP=var_1) SUM;
    VAR var_1;
RUN;

In terms of disk I/O, I imagine that each record must be read in its entirety no matter what. But perhaps less memory needs to be allocated to read the records. Any advice is appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T05:05:52+00:00Added an answer on June 3, 2026 at 5:05 am

    Yes it does make a difference. Most of the time it’s not a large difference but if you start to have very wide or very long datasets you will start to see some benefit.

    Search for keep= on the link below…

    http://support.sas.com/techsup/technote/ts298.html

    If you’re having performance issues then this may shave fractions of seconds or seconds off what you are doing but it’s not going to cut your processing time in half. Look for other optimization techniques if you need that.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hi I have been trying out this problem : Suppose P(n) is sum of
I'm trying to debug one specific issue with ASP.NET application and I suppose the
I'm trying to insert via checkbox, but it saves only one record, suppose in
Possible Duplicate: Difference between pointer variable and reference variable in C++ suppose I'm trying
suppose i have xml data stored in string variable. so when i am trying
I am trying to handle exception in C#...suppose if the program writes to an
i'm trying to do some post/lazy evaluation of arguments on my strings. Suppose i've
I'm trying to implement java like url pattern matching in php. Suppose i have
I'm trying to get an object of checkbox names and values. Suppose I have
Here is the main problem. I have very large database (25,000 or so) of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.