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

proc import multiple csv files

by Obsidian | Level 7 sundeep23 in SAS Communities Library
‎09-02-2014 04:07 PM
‎09-02-2014 04:07 PM
\Hi all,          I am trying to import and merge multiple csv files in to one and I cant use infile statement as I dont know the format of the variables y...
  • Find more articles tagged with:
  • csv
  • files
  • import
  • mutiple
  • proc
Labels:
  • SAS Programming

Proc Import multiple CSV files

by Calcite | Level 5 RensMeerman in SAS Enterprise Guide
‎02-09-2017 06:34 AM
‎02-09-2017 06:34 AM
Dear experts,   Me, the newbe, has created a macro to read in some csv files. It works but I think the code can be smarter since now I do this manually for something like 30 files which are a...
Show results in replies (3)
  • ...+multiple+csv+files   You don't need macro, you can do it in a datastep and use w...
  • ...omputers to shorten the running time. The result is multiple .csv files in the local  of multiple...
  • And best of all the doc has exactly your example    Example 1: Import All CSV Files T...

Importing multiple CSV files

by Calcite | Level 5 ngallagher98146 in SAS Programming
‎07-01-2020 03:25 PM
‎07-01-2020 03:25 PM
...ariables and are in the same format. I am relatively new to SAS, but am hoping to utilize a macro as I have multiple CSV files to combine for several projects. Thank you in advance and please let me know if I...
Show results in replies (1)
  • %if %superq(ext) = %superq(&name) %then %do; should be %if %superq(&ext) = %superq(...

Error in pulling over column names using proc import multiple csv file...

by Calcite | Level 5 Chelsea8 in SAS Programming
‎03-20-2024 12:46 PM
‎03-20-2024 12:46 PM
  I am pulling 11 csv files over from my local c: and the first row is not becoming the sas column names. The first field name is 'sep=' and the following field names are 'var1, var2, var3......
Show results in replies (1)
  • Perhaps this gives you an alternate: data example; fname='C:\Users\Chelsea.H\Desktop\QRR_2022\...

sas macro import csv file detect numeric value

by Obsidian | Level 7 denperp in SAS Programming
‎11-29-2023 03:47 PM
‎11-29-2023 03:47 PM
..." /b'; /* This step resolves the file names in the directory (the downloaded csv files) to SAS dataset "files" - one table is created "fname" with the names of the csv files*/ data _HR; length fname $2...
Show results in replies (2)
  • ...input Each time I run this I will have multiple files.  I want the program to be able to read w...
  • Excellent Tom, thank you.  I was reading too quickly the first time around.  I was overth...

Importing multiple csv files from a single directory with a loop

by Fluorite | Level 6 Thomasanderson in SAS Programming
‎04-27-2023 02:37 PM
‎04-27-2023 02:37 PM
I have a directory with a large number of csv files. I want to import some of them without writing a separate proc import for each, because that would be silly. For arguments sake, let's say the files...
Show results in replies (1)
  • ...ARNING: Using PROC IMPORT to read a series of CSV files that should have the exact same variables is a r...

Carriage Return / Multiple Line Break Issue Importing TXT File

by Calcite | Level 5 Lauren_dal in SAS Programming
‎12-13-2017 04:09 PM
‎12-13-2017 04:09 PM
Hi all,   I am trying to import quite a large pipe-delimited txt file (approx. 18 million observations/ 17 million KB) into sas (version 9.4), but there are too many line breaks in my d...
Show results in replies (8)
  • ...ctual data file ever have truncated records?  That is records that only contain some of the fields a...
  • ...he raw data you  are using?  If it's the latter get the person who made the file redo it c...
  • try using proc import, something like this proc import datafile ="C:\data.txt" out= xyz dbms="d...
  • It was realy a chalenge. Next code works fine with the sample. I hope you'll be able to addapt it...
  • ...bsp; I have updated my sample data file as well.
  • Shmuel - your code seems like it will work for this data. I just tried modifying it a bit using my ...
  • ...hat the data can then import properly.    Thanks so much!
  • @Tom's solution seems very neat, but testing it I have the feeling it misses the last input re...

Multiple days CSV file import to SAS

by Obsidian | Level 7 scb in SAS Programming
‎01-25-2017 02:59 AM
‎01-25-2017 02:59 AM
Every month I have daily CSV files (from 2nd day of the month to 1st day of next month, e.g. 2 Oct to 1 Nov).  I have no problem in importing the CSV file individually into SAS.  May I k...
Show results in replies (1)
  • ...ntnx('month',start,1,'begin'); length filestring $1000 file_name $30; do date = start to end; 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

Importing multiple large CSV files with varying data formats in one co...

by Barite | Level 11 Season in SAS Programming
‎06-16-2025 03:45 AM
‎06-16-2025 03:45 AM
I have a bunch of large CSV files to import, each of which well exceeds the maximum number of rows an Excel spreadsheet can hold. The data are further complicated by a mixture of different formats o...
Show results in replies (3)
  • ...ossible to import the CSV files in a parallel instead of a sequential manner? My experience in importing s...
  • ...uestion is: is it possible to import the CSV files in a parallel instead of a sequential manner? My e...
  • ...umber in the file. Identical shorter heading may get numeric suffixes added. Example a file with multiple...
  • « Previous
    • 1
    • 2
    • 3
  • Next »
Powered by Khoros