• Community
    • Home
    • Welcome
      • Getting Started
      • Community Memo
      • All Things Community
      • SAS Customer Recognition Awards (2024)
      • SAS Customer Recognition Awards (2023)
    • SAS Community Library
    • SAS Product Suggestions
    • Upcoming Events
    • SAS Customer Recognition Awards
    • All Recent Topics
  • Learn
    • New SAS User
    • SAS Software for Learning Community
    • Ask the Expert
    • SAS Certification
    • SAS Tips from the Community
    • SAS Training
      • Programming 1 and 2
      • Advanced Programming
      • Course Case Studies and Challenges
      • Trustworthy AI
    • SAS Global Forum Proceedings 2021
    • Tech Report Archive
    • SAS Insights Archive
  • Programming
    • SAS Programming
    • SAS Procedures
    • SAS Enterprise Guide
    • SAS Studio
    • Graphics Programming
    • ODS and Base Reporting
    • SAS Code Examples
    • SAS Web Report Studio
    • Developers
  • Analytics
    • Statistical Procedures
    • SAS Data Science
    • Mathematical Optimization, Discrete-Event Simulation, and OR
    • SAS/IML Software and Matrix Computations
    • SAS Forecasting and Econometrics
    • Streaming Analytics
    • Research and Science from SAS
  • SAS Viya
    • SAS Viya
    • SAS Viya on Microsoft Azure
    • SAS Viya Release Updates
    • Moving to SAS Viya
    • SAS Visual Analytics
    • SAS Visual Analytics Gallery
    • Your Journey to Success
    • SAS Viya Workbench
      • SAS Viya Workbench: Getting Started
      • SAS Viya Workbench Discussion
      • SAS Viya Workbench: Release Updates
  • Administration
    • Administration and Deployment
    • Architecture
    • SAS Hot Fix Announcements
    • SUGA
  • Solutions
    • Microsoft Integration with SAS
    • Decisioning
    • SAS Decision Builder
    • Data Management
    • SAS Data Maker
      • SAS Data Maker: Getting Started
      • SAS Data Maker Discussion
    • Customer Intelligence
      • SAS Customer Intelligence
      • SAS Customer Intelligence 360 Release Notes
      • SAS 360 Match
    • Risk and Fraud
      • SAS Risk Management
      • Fraud, AML and Security Intelligence
      • SAS Risk Release Updates
      • Risk & Finance Analytics
      • Insurance Fraud
      • MRM AI Governance Working Group
      • SAS Quant Community
    • SAS Health
      • SAS Health and Life Sciences
      • SAS Life Science Analytics Framework
  • Hubs
    • Regional Hubs
      • SAS User Groups
      • SAS Community Nordic
      • AML Nordic User Group
      • SAS Japan
      • SAS Korea
      • CoDe SAS German
      • SAS Plattform Netzwerk
      • SAS Brazil Community
      • SAS Spanish Community
      • SAS Users Group in Israel
      • 欢迎来到SAS中文社区!
      • Ottawa Area SAS Users' Society
      • Toronto Area SAS Users Group
      • SAS Türkiye Community
    • Special Interest Hubs
      • SAS Hacker's Hub
      • SAS Innovate 2026
      • SAS Analytics Explorers
      • The Curiosity Cup
      • SAS Inner Circle Panel
      • SAS Hackathon Team Profiles (Past)
      • SAS Explore
      • Reporting and Optimization
      • Intern Alumni Network Community
Sign In

Search the Community

Showing results for 
Search instead for 
Did you mean: 
Search Options
  • Subscribe to RSS Feed for this Search
Advanced Hide Advanced
  • Posts
  • Users
  • Places
  • Products
Advanced Search Options
Search Modifiers:
You can apply modifiers to the terms you enter in the search field.
Use quotes to search for an "exact phrase".
Use the plus sign to search for +one +or +more +words.
Use the minus sign to -exclude -certain -words from your search.
Limits search results to topics that have no replies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
660 results
Sorted by:
Best Match
  • Date
  • Views
  • Likes
  • Replies
  • Best Match

How to delete SAS data sets

by Community Manager ChrisHemedinger in SAS Communities Library SUGGESTED
‎02-20-2021 04:32 PM
11 Likes
‎02-20-2021 04:32 PM
11 Likes
...park joy" and you'll decide that it's time to delete them. Deleting data sets that you no longer need can save space and memory during processing, and it's best practice to clean up. In this article I'll d...
Labels:
  • Data Management
  • SAS Programming

Delete variables with 90% missing values

by Obsidian | Level 7 lansoprazole in SAS Programming
‎02-20-2023 09:59 PM
‎02-20-2023 09:59 PM
Hi,   I have a dataset with around 520 variable with many missing values. I want to delete variables with >90% missing values (I dont want to impute). Is there any macro or anything else t...
Show results in replies (1)
  • ...ataset you want modify pct is the percent of missing you want to drop */ %drop_vars(dsn=have,pct=0.6)

Delete all variables from a datasets that have all missing character ...

by Fluorite | Level 6 Suki99 in SAS Programming
‎02-05-2024 11:44 AM
‎02-05-2024 11:44 AM
...ay to tell sas to delete/remove all variables that have missing values across all observations    does anyone know how to do that please  be indebted .   /* find string / value a...
Show results in replies (1)
  • ...ave only missing values */ ) ; /* PURPOSE: To find both Character and Numeric the variables t...

How to delete variables with missing values

by Fluorite | Level 6 Birgithj in SAS Programming
‎10-02-2019 05:30 AM
‎10-02-2019 05:30 AM
...here are no missing values, e.g. I need to delete variable B below.  How can I delete all variables with missing values?   Var A Var B Var C 1 2 3 1 2 3 1 2 3 1 2 3...
Show results in replies (1)
  • One way   data have; input VarA VarB VarC; datalines; 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 . 3...

deleting row with missing observation

by Calcite | Level 5 wschnell1 in SAS Programming
‎10-21-2013 11:11 PM
‎10-21-2013 11:11 PM
Hi, I have a large number of columns and rows. I want to delete a row of data if one specific variable is missing (FIRMID) which is a numerical variable I tried the following but it d...
Show results in replies (1)
  • While few people use them, there are special missing values that are different from the usual n...

Missing Value Imputation

by Lapis Lazuli | Level 10 rbettinger in SAS Communities Library
‎02-04-2022 05:20 PM
6 Likes
‎02-04-2022 05:20 PM
6 Likes
I published a paper in the Southeast SAS Users' Group meeting in 2021 on the topic of missing value imputation, and I am sharing it with the SAS community.   I describe the purpose of missing...
Missing Value Imputation SESUG Paper 16-2021.pdf (‏1,888 KB)
Labels:
  • Data Mining
  • SAS IML
  • Statistical Procedures

Deleting Variables with Only Missing Values from Dataset with 4000+ Va...

by Obsidian | Level 7 sabataged in New SAS User
‎09-12-2018 01:17 PM
‎09-12-2018 01:17 PM
...round 4000+ variables and 3000+ observations.  The data is from 30 different centers, but I am only interested in the data from 3 centers. Some variables are the same for all centers, but variable...
  • Tags:
  • large datasets
  • Macro Variables
  • macros
  • truncation
Show results in replies (6)
  • The limitation of that approach is the requirement to use macro variables.  So don't use m...
  • Are the missing variables likely to be character or numeric?   This is actually asked p...
  • ...s have only missing values?  Do you have any numeric variables? If so does it matter if the variable...
  • Hi Tom, thanks for the reply. To answer your questions: 1. Yes, I would like to delete variables w...
  • Sounds like missing status has nothing to do with the request.  Perhaps I misunderstood your o...
  • ...umeric variables, and there are a fair amount of both types dispersed throughout the document. As for t...

deleting observations with several variables missing

by Obsidian | Level 7 catch18 in SAS Programming
‎10-08-2019 11:22 PM
‎10-08-2019 11:22 PM
Hi,   I have to delete observations with more than 10 variables recorded as 0. I have used macros so far but it is not working and I'm not familiar with array. Each observation has 60 variable...
Show results in replies (1)
  • ...hat @Reeza posted would work for missings. data have; array nvars {20} 8 (20*0); do i...

How to delete rows with all missing numbers from a range of variables

by Pyrite | Level 9 ANKH1 in SAS Procedures
‎11-14-2022 04:04 PM
‎11-14-2022 04:04 PM
Hi,  I want to delete rows that have missing values for a list of consecutive variables. For example, from a the a dataset like: id   cat var1 var2 var3 var4 stop 42  a 1 0 0 1...
Show results in replies (1)
  • ...ense, because it relies on the order of variables in the PDV.   It should work if you change t...

Delete variables only if all are missing

by Rhodochrosite | Level 12 Babloo in SAS Programming
‎09-18-2018 09:03 AM
‎09-18-2018 09:03 AM
I want to delete the variables only if all of them (INBNPR,INBINK,INBFRK) are missing using where clause. In this case I want the same output as I got in the previous dataset qisfr15 but I end up w...
Show results in replies (1)
  • proc sql; create table test as select * from qisfr15 where nmiss(INBNPR,INBINK,INBFRK)<3; quit;

Delete missing cases where one variable has more than 50% missing

by Pyrite | Level 9 joebacon in SAS Procedures
‎11-16-2018 10:45 AM
‎11-16-2018 10:45 AM
Hi all! I hope your Fridays are going well.   As the title suggests, I had a question about missing cases and how to delete cases where one variable is missing more than 50% of the cases. &n...
Show results in replies (1)
  • Hi @joebacon,   Try this: proc sql; create table Missing_Gone as select * from B...
  • « Previous
    • 1
    • 2
    • 3
  • Next »
Powered by Khoros