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

Importing multiple Excel files

by Obsidian | Level 7 buckeyefisher in SAS Enterprise Guide
‎03-05-2021 06:08 PM
‎03-05-2021 06:08 PM
I have been using following code to import multiple excel files. But today its giving me this error - ERROR: File WORK.RUN.DATA does not exist. Tries looking up here but unable to resolve. F...
Show results in replies (1)
  • Write your code in a manner that makes data step code vs. macro code visible: data whole; set %d...

Import multiple Excel files(xlsx)

by Quartz | Level 8 Aleixo in SAS Programming
‎02-05-2018 11:18 AM
‎02-05-2018 11:18 AM
Hi,   I am trying import multiple files from a folder. I try every code in others topics and never made it. All files in that folder have the extension xlsx   For save the name files...
Show results in replies (3)
  • I am using EG.   Can i use task to import multiple Excel files? Or it is only by code(macro)?
  • @Aleixo wrote: I am using EG.   Can i use task to import multiple Excel files? Or it i...
  • ...or this to work you'll need to move your files first to the server and then run the code you were t...

Importing multiple Excel sheets

by Obsidian | Level 7 WouterKBC in SAS Data Management
‎09-05-2016 05:18 AM
‎09-05-2016 05:18 AM
I'm trying to import multiple Excel sheets. The problem is that I don't know the amount of Excel files that have to be combined into a single table in SAS. Which Excel files that are used, are f...
Show results in replies (1)
  • ...an modify this macro by changing extension from CSV to XLSX.  This asssumes all excel files a...

Proc-importing multiple excel files using %macro

by Obsidian | Level 7 KS99 in SAS Programming
‎04-17-2022 09:31 PM
‎04-17-2022 09:31 PM
...bsp; %import(file1); %import(file2); %import(brabra.... etc.    However, it didn't work, and what I got was only   ERROR: Physical file does not exist, C:/Users/somebody/Desktop/C...
Show results in replies (1)
  • ...PRINT; before executing the macro.   If these XLS (really!?) files are supposed to be of t...

import multiple excel sheets in SAS

by Quartz | Level 8 saraphdnz in SAS Programming
‎04-14-2020 01:55 AM
‎04-14-2020 01:55 AM
  Hi there - I need to import multiple sheets from one excel workbook "Transposednew" into SAS as separate SAS data files. Excel workbook "Transposednew" contains 316 sheets with name J...
Show results in replies (1)
  • ...EC; %macro ex; %do year = 1990 %to 1992; /* adapt years as need */ %do i=1 %to 12; %let file...

Tip: How to create data sources from imported files and share them acr...

by SAS Employee jakanj in SAS Communities Library
‎10-23-2014 01:01 PM
2 Likes
‎10-23-2014 01:01 PM
2 Likes
...reate and share data sources across multiple projects. Let’s explore this topic now.   Data We are going to import the soil.csv file which contains African soil property data into Enterprise M...
Labels:
  • Data Mining
  • Tips and Tricks

Import multiple Excel files(xlsx)

by Obsidian | Level 7 sas_learnsups in SAS Programming
‎04-17-2018 09:56 PM
‎04-17-2018 09:56 PM
I am trying to import .xlsx file with 1700 columns using data step, but it is taking in only 255 variables.I tried using Proc import but it isn't taking it either.Any ideas how do i get all the 1...
Show results in replies (1)
  • ...as_learnsups wrote: I am trying to import .xlsx file with 1700 columns using data step, but it is t...

A macro to import multiple Excel files from a folder into SAS?

by Fluorite | Level 6 New_2_this in SAS Programming
‎03-19-2018 07:18 AM
‎03-19-2018 07:18 AM
Hi SAS Community,   Please could someone assist me? I am new to SAS.   My Objective: To import many excel files into sas.   My Understanding: 1. a macro can be used. 2. I am a...
Show results in replies (1)
  • ...bsp;  proc import out =Months_Q2                 &n...

importing multiple excel files to SAS datasets

by Obsidian | Level 7 Raj_C in SAS Programming
‎09-19-2016 08:10 AM
‎09-19-2016 08:10 AM
  Hi SAS Users,   I am converting excel to SAS dataset with the following code. now I want to convert around 10 excel files to SAS datasets. instead of writing 10 time this same code c...
Show results in replies (1)
  • ...null_; set control; call execute('%import_excel('!!strip(filename)!!');'); run;

Macro to import all Excel files

by Quartz | Level 8 chris2377 in SAS Programming
‎07-10-2017 06:09 AM
‎07-10-2017 06:09 AM
Hi,   I have a number of Excel files, named Company1_2016Q1.xlsx, Company1_2016Q2.xlsx, Company2_2016Q1.xlsx, Company2_2016Q2.xlsx etc. They are stored in one folder with multiple s...
Show results in replies (1)
  • ...nto one file either in SAS or Excel - note with VBA you could load all the files and dump to CSV, t...
  • « Previous
    • 1
    • 2
    • 3
  • Next »
Powered by Khoros