Skip to main content

  • Software
    • Software
    • SAS Viya
    • Industries
    • Solutions
    • Products
  • Learn
    • Learn
    • Training
    • Certification
    • Academics
    • Books
    • Video Tutorials
  • Support
    • Support
    • Communities
    • Documentation
    • Developers
    • Support & Services
    • User Groups
  • About Us
    • About Us
    • Why SAS?
    • Company
    • Careers
    • Newsroom
    • Events
    • Contact Us
  • Explore
    • Explore
    • Try & Buy
    • Why SAS?
    • Customer Stories
    • Partners
    • Consulting
  • Software
  • SAS Viya
  • Industries
  • Solutions
  • Products
  • Learn
  • Training
  • Certification
  • Academics
  • Books
  • Video Tutorials
  • Support
  • Communities
  • Documentation
  • Developers
  • Support & Services
  • User Groups
  • About Us
  • Why SAS?
  • Company
  • Careers
  • Newsroom
  • Events
  • Contact Us
  • Explore
  • Try & Buy
  • Why SAS?
  • Customer Stories
  • Partners
  • Consulting
  • sas.com
  • support.sas.com
  • documentation.sas.com
  • blogs.sas.com
  • communities.sas.com
  • developer.sas.com

Select Your Region

Visit the Cary, NC, US corporate headquarters site

Americas

Europe

Middle East & Africa

Asia Pacific

View our worldwide contacts list for help finding your region

Americas

  • Brasil
  • Canada (English)
  • Canada (Français)
  • Colombia
  • México
  • United States

Europe

  • Belgium
  • Česká Republika
  • Danmark
  • Deutschland
  • España
  • France
  • Iceland
  • Ireland
  • Italia
  • Nederland
  • Norge
  • Österreich
  • Polska
  • Portugal
  • România
  • Россия
  • Schweiz (Deutsch)
  • Suisse (Français)
  • Suomi
  • Sverige
  • Türkiye
  • Україна
  • United Kingdom

Middle East & Africa

  • Middle East
  • Saudi Arabia
  • South Africa

Asia Pacific

  • Australia
  • 中国 (简体中文)
  • Hong Kong
  • India
  • 日本
  • 대한민국
  • Malaysia
  • New Zealand
  • Philippines
  • Singapore
  • 台灣 (繁體中文)
  • Thailand (English)
  • ประเทศไทย (ภาษาไทย)
  • Contact Us
Sign In

Create Profile

My SAS

Get access to My SAS, trials, communities and more.

Sign Out

Edit Profile

My SAS

Get access to My SAS, trials, communities and more.

SAS Sites

sas.com
Support
Blogs
Communities
Developer
Curiosity
Videos

Documentation

Learn
Brand
PartnerNet
Merchandise

Data Step Samples

Browse DATA Step Samples

  • Array Processing
  • BY-Group Processing
  • CALL routines
  • Component Objects
  • Functions, Character
  • Functions, Date &Time
  • Functions, External Files
  • Functions, Mathematical
  • Functions, SAS File I/O
  • Functions, Special
  • Functions, State & Zip
  • Functions, Truncation
  • MERGE
    • with BY
    • with IN=
  • MODIFY
    • with BY
    • with KEY=
    • with POINT=
  • Random Sampling
  • Reading and Writing External Data
  • Report Writing
  • SET
    • with BY
    • with IN=
    • with KEY=
    • with NOBS=
    • with POINT=
  • UPDATE
  • Utilities
Web
  1. SAS Support
  2. SAS Knowledge
  3. Data Step Samples
  1. SAS Support
  2. SAS Knowledge
  3. Data Step Samples

SAS data and AI solutions provide our global customers with knowledge they can trust in the moments that matter, inspiring bold new innovations across industries.

Contact Us

Follow Us

  • Facebook
  • Twitter
  • LinkedIn
  • YouTube
  • RSS

Explore

  • Accessibility
  • Careers
  • Certification
  • Communities
  • Company
  • Data Management
  • Developers
  • Documentation
  • For Educators
  • Events
  • Industries
  • My SAS
  • Newsroom
  • Products
  • SAS Viya
  • Solutions
  • Students
  • Support & Services
  • Training
  • Try/Buy
  • Video Tutorials
  • Why SAS?

What is...

What is...

  • Analytics
  • Artificial Intelligence
  • Data Management
  • Data Science
  • Generative AI
  • Responsible Innovation
  • Privacy Statement
  • Terms of Use
  • Trust Center
  • ©2025 SAS Institute Inc. All Rights Reserved.
  • Contact Us
  • Share
  • Subscribe

Share this
Share this page with friends or colleagues. 

EmailFacebookTwitterLinkedIn
Back to Top