• 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
    • 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 2025
      • 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.
1,264 results
Sorted by:
Best Match
  • Date
  • Views
  • Likes
  • Replies
  • Best Match

Split dataset

by Obsidian | Level 7 dapenDaniel in SAS Programming
‎11-14-2018 05:26 PM
‎11-14-2018 05:26 PM
Hello. My data-set has more than 1 million observations and I would like to export it as excel file. However, the number of observation has beyond the maximum rows for excel. I think I should split t...
Show results in replies (1)
  • Use the mod() function to create a variable that can be used to split your data set. Say you want t...

Splitting a dataset into multiple dataset

by Calcite | Level 5 Anu_R in SAS Procedures
‎06-06-2011 03:07 PM
‎06-06-2011 03:07 PM
I have a dataset and I need to split this dataset based on a variable (say deptid) in it . The number of splits depends on the number of distinct departments.The name of the output dataset comes f...
  • Tags:
  • astrology
Show results in replies (3)
  • ...lasses from the dataset and split it accordingly.
  • ...eight > 85 or 110 etc). > There are over 100 classes (departments) in my > dataset. &g...
  • This is an approach to put all observations of the same Deptid value into separate data sets named&...

Split dataset using Macro

by Obsidian | Level 7 AshokD in SAS Programming
‎11-06-2020 11:34 AM
‎11-06-2020 11:34 AM
Hi All,   I'm trying to split dataset using product id , but seems it's not working. Can someone have a look and correct me please?   data sample; input custid prdid prdname $30.; c...
Show results in replies (1)
  • Your logic is a little confused. You don't care how large the original dataset is, just how many dataset...

How to split dataset with multiple conditions

by Calcite | Level 5 NewbieTom in SAS Programming
‎12-16-2022 03:26 PM
‎12-16-2022 03:26 PM
Hi all,   Below is the original dataset that I want to split it into 3 different datasets as pass, open, and exception. Could someone kindly show me how to go about doing this? Any help is g...
Show results in replies (1)
  • It seems like you are looking at the rows in groups of all the failures for a certain client up unt...

Splitting up dataset based on unique variable

by Tourmaline | Level 20 PeterClemmensen in SAS Programming
‎04-06-2017 08:54 AM
‎04-06-2017 08:54 AM
...00 400 three 500 200 three 200 100 two 400 200 two 300 166 one 300 100 three 400 400 ; Now, what if I want to dynamically split up this dataset into three datasets called one two and three? And I w...
  • Tags:
  • how can you separate out one dataset
Show results in replies (2)
  • ...hree 400 400 ; Now, what if I want to dynamically split up this dataset into three datasets c...
  • ...ata _null_; if _n_=1 then do; if 0 then set have; declare hash h(dataset:'have(obs=0)',m...

Splitting dataset dynamically using macro

by Obsidian | Level 7 MadQuant in SAS Programming
‎10-24-2017 12:14 AM
‎10-24-2017 12:14 AM
...n WRDS cloud server, which is presumably much faster than my local machine, splitting the dataset is mandatory to do any kind of analysis.   I am planning to split the dataset in 40 smaller dataset...
Show results in replies (3)
  • I have created a macro to split data. It takes symbol root as an input and creates dataset with n...
  • Take the total number of obs, from sashelp.vtable, divide it by 40 and split your dataset into y...
  • To create the 40 datasets you want, you'll have to read the whole big date 40 times. And then w...

Split a large dataset efficiently

by Obsidian | Level 7 prad001 in SAS Programming
‎08-20-2019 05:59 PM
‎08-20-2019 05:59 PM
Hi All, Please help me to split the dataset efficiently (preferably hash). Since the data set TEST has duplicates, getting error while splitting using hash.. All i wanted is not to split by record c...
  • Tags:
  • hash
  • large dataset
  • loops
  • merge
  • split
Show results in replies (4)
  • ...reate duplicates; end ; run ;   All I want is split the dataset into 100 by NEW. If the f...
  • Sir, I didn't particularly look into the code beyond  All i wanted is not to split by r...
  • ...nd ; run ; HAVE needs to be split into an a priori unknown number of data sets w...
  • ...implifies the splitting task, as it reduces it to simple BY processing. Code the argument tag M...

How to split large dataset into smaller one

by Quartz | Level 8 _el_doredo in SAS Enterprise Guide
‎11-01-2022 09:26 AM
‎11-01-2022 09:26 AM
Hello Experts,   I need to split my larger data set. I know how many datasets i want from the larger data set.   I want to split my larger data set into 3 data set with equal c...
Show results in replies (2)
  • What about this? %macro temp(dataset=,noofsplits=); data %do i = 1 %to &noofsplits.; split...
  • ...) then output split1; /* (when &i=1) */ else if _n_ le (2*x) then output split2; /* (when &i...

how to split huge data into multiple datasets

by Lapis Lazuli | Level 10 BrahmanandaRao in SAS Programming
‎12-28-2019 12:26 PM
‎12-28-2019 12:26 PM
Hi Good Evening  suppose  i have huge data in a single dataset so i want to split that data into multiple datasets following first dataset 20% second dataset 50% third dataset 30% a...
Show results in replies (1)
  • If so then do   data have; do x=1 to 1e7; y=rand('uniform', 1, 100); outpu...

Split SAS dataset by columns

by Obsidian | Level 7 rfarmenta in SAS Procedures
‎06-15-2017 11:30 AM
‎06-15-2017 11:30 AM
I have a SAS dataset with 3000 variables that I need to split into 3 datasets with 10000 variables each. I need each dataset to have the studyid in the dataset so they can remerged later. Is there a...
Show results in replies (1)
  • ...ave to change them if your dataset isn't in the WORK library and/or isn't called HAVE. &n...
  • « Previous
    • 1
    • 2
    • 3
  • Next »
Powered by Khoros